aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-01-01 17:22:40 -0500
committerJustin M. Keyes <justinkz@gmail.com>2016-01-01 17:22:40 -0500
commit4d27bd6bfee8eef32408b14aa2b6f08ee902d6e7 (patch)
treea5ee78045f44cad829d61014b6392bf14d8caa0d /test/functional/helpers.lua
parentadf11f3478a665713d1817b19423a4eb260253cf (diff)
parenta48508de0dd745cba94debe63f0695447f4ac82f (diff)
downloadrneovim-4d27bd6bfee8eef32408b14aa2b6f08ee902d6e7.tar.gz
rneovim-4d27bd6bfee8eef32408b14aa2b6f08ee902d6e7.tar.bz2
rneovim-4d27bd6bfee8eef32408b14aa2b6f08ee902d6e7.zip
Merge pull request #3920 from sethjackson/vim-spec
Windows: Fix api/vim_spec.lua functional test
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r--test/functional/helpers.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua
index 9562457c8e..67c5a6f626 100644
--- a/test/functional/helpers.lua
+++ b/test/functional/helpers.lua
@@ -323,6 +323,10 @@ local function expect(contents)
return eq(dedent(contents), curbuf_contents())
end
+local function os_is_windows()
+ return nvim_eval('has("win32")') == 1
+end
+
local function rmdir(path)
if lfs.attributes(path, 'mode') ~= 'directory' then
return nil
@@ -425,6 +429,7 @@ return {
wait = wait,
set_session = set_session,
write_file = write_file,
+ os_is_windows = os_is_windows,
rmdir = rmdir,
mkdir = lfs.mkdir,
exc_exec = exc_exec,