mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +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:
@@ -9,7 +9,7 @@ local curbufmeths = helpers.curbufmeths
|
||||
local insert = helpers.insert
|
||||
local expect = helpers.expect
|
||||
local feed = helpers.feed
|
||||
local iswin = helpers.iswin
|
||||
local is_os = helpers.is_os
|
||||
local skip = helpers.skip
|
||||
|
||||
do
|
||||
@@ -26,7 +26,7 @@ before_each(function()
|
||||
end)
|
||||
|
||||
describe('legacy perl provider', function()
|
||||
skip(iswin())
|
||||
skip(is_os('win'))
|
||||
|
||||
it('feature test', function()
|
||||
eq(1, eval('has("perl")'))
|
||||
@@ -70,7 +70,7 @@ describe('legacy perl provider', function()
|
||||
end)
|
||||
|
||||
describe('perl provider', function()
|
||||
skip(iswin())
|
||||
skip(is_os('win'))
|
||||
teardown(function ()
|
||||
os.remove('Xtest-perl-hello.pl')
|
||||
os.remove('Xtest-perl-hello-plugin.pl')
|
||||
|
||||
Reference in New Issue
Block a user