aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r--test/functional/helpers.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua
index 2d54d23254..74625eb7fa 100644
--- a/test/functional/helpers.lua
+++ b/test/functional/helpers.lua
@@ -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