aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-01-19 11:10:58 +0100
committerGitHub <noreply@github.com>2017-01-19 11:10:58 +0100
commitb7b82f8c71a9282cd4f281b0058d5aec8f3e7a2b (patch)
tree9110a9dfe22936d1dc86c69af4951f02e79e3518 /test/functional/helpers.lua
parent5db30dcc19d10837fee11e2d7f644a5cc76fd79f (diff)
parent7637df4b59091103996b07760cece4be8c557c35 (diff)
downloadrneovim-b7b82f8c71a9282cd4f281b0058d5aec8f3e7a2b.tar.gz
rneovim-b7b82f8c71a9282cd4f281b0058d5aec8f3e7a2b.tar.bz2
rneovim-b7b82f8c71a9282cd4f281b0058d5aec8f3e7a2b.zip
Merge #5937 from justinmk/win32-test
Windows: test: enable job_spec.lua
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r--test/functional/helpers.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua
index 2939184d2c..d9c85c03f8 100644
--- a/test/functional/helpers.lua
+++ b/test/functional/helpers.lua
@@ -169,6 +169,10 @@ local os_name = (function()
end)
end)()
+local function iswin()
+ return os_name() == 'windows'
+end
+
-- Executes a VimL function.
-- Fails on VimL error, but does not update v:errmsg.
local function nvim_call(name, ...)
@@ -502,7 +506,6 @@ end
-- Helper to skip tests. Returns true in Windows systems.
-- pending_fn is pending() from busted
local function pending_win32(pending_fn)
- clear()
if uname() == 'Windows' then
if pending_fn ~= nil then
pending_fn('FIXME: Windows', function() end)
@@ -553,6 +556,7 @@ return function(after_each)
source = source,
rawfeed = rawfeed,
insert = insert,
+ iswin = iswin,
feed = feed,
execute = execute,
eval = nvim_eval,