mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
Mark some functional tests as pending in Windows
This commit is contained in:
committed by
Rui Abreu Ferreira
parent
0089ef6b65
commit
39c628d031
@@ -430,6 +430,20 @@ local function create_callindex(func)
|
||||
return table
|
||||
end
|
||||
|
||||
-- Helper to skip tests. Returns true in Windows systems.
|
||||
-- pending_func is the pending() from busted
|
||||
local function pending_win32(pending_func)
|
||||
clear()
|
||||
if os_name() == 'windows' then
|
||||
if pending_func ~= nil then
|
||||
pending_func('FIXME: Windows', function() end)
|
||||
end
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
local funcs = create_callindex(nvim_call)
|
||||
local meths = create_callindex(nvim)
|
||||
local bufmeths = create_callindex(buffer)
|
||||
@@ -493,6 +507,7 @@ return function(after_each)
|
||||
curbufmeths = curbufmeths,
|
||||
curwinmeths = curwinmeths,
|
||||
curtabmeths = curtabmeths,
|
||||
pending_win32 = pending_win32,
|
||||
NIL = mpack.NIL,
|
||||
}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user