aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
authorRui Abreu Ferreira <raf-ep@gmx.com>2016-08-15 16:42:12 -0700
committerRui Abreu Ferreira <rap-ep@gmx.com>2016-08-26 08:21:41 +0100
commit39c628d031b89e9048340f6c95b9c3a97c2a0089 (patch)
tree08e43522f44303bdbd2059b41d784560a1035ddf /test/functional/helpers.lua
parent0089ef6b652ee455c9491a1a11f23939cfb63a08 (diff)
downloadrneovim-39c628d031b89e9048340f6c95b9c3a97c2a0089.tar.gz
rneovim-39c628d031b89e9048340f6c95b9c3a97c2a0089.tar.bz2
rneovim-39c628d031b89e9048340f6c95b9c3a97c2a0089.zip
Mark some functional tests as pending in Windows
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