mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
test: simplify platform detection (#21020)
Extend the capabilities of is_os to detect more platforms such as
freebsd and openbsd. Also remove `iswin()` helper function as it can be
replaced by `is_os("win")`.
This commit is contained in:
@@ -48,7 +48,7 @@ describe('Test for delete()', function()
|
||||
|
||||
it('symlink directory delete', function()
|
||||
command("call mkdir('Xdir1')")
|
||||
if helpers.iswin() then
|
||||
if helpers.is_os('win') then
|
||||
command("silent !mklink /j Xlink Xdir1")
|
||||
else
|
||||
command("silent !ln -s Xdir1 Xlink")
|
||||
|
||||
Reference in New Issue
Block a user