aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/011_autocommands_spec.lua
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-05-18 17:30:21 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-05-24 22:11:12 -0400
commit209f05b48745e5e077d4d34ea7013d7bb20463de (patch)
treefae76bdff24e3f732a33e91638d33a820f733a52 /test/functional/legacy/011_autocommands_spec.lua
parentd2c460638c7dad1253c672e91d889003b79428bc (diff)
downloadrneovim-209f05b48745e5e077d4d34ea7013d7bb20463de.tar.gz
rneovim-209f05b48745e5e077d4d34ea7013d7bb20463de.tar.bz2
rneovim-209f05b48745e5e077d4d34ea7013d7bb20463de.zip
win: test: disable non-admin failing tests
mkfifo (msysgit) does not work outside of msys2 environment. gzip tests fail on Windows. mklink requires admin privs for file symbolic links so mklink fails.
Diffstat (limited to 'test/functional/legacy/011_autocommands_spec.lua')
-rw-r--r--test/functional/legacy/011_autocommands_spec.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/legacy/011_autocommands_spec.lua b/test/functional/legacy/011_autocommands_spec.lua
index c2667d28d2..379646b2ba 100644
--- a/test/functional/legacy/011_autocommands_spec.lua
+++ b/test/functional/legacy/011_autocommands_spec.lua
@@ -17,9 +17,10 @@ local lfs = require('lfs')
local clear, feed_command, expect, eq, neq, dedent, write_file, feed =
helpers.clear, helpers.feed_command, helpers.expect, helpers.eq, helpers.neq,
helpers.dedent, helpers.write_file, helpers.feed
+local iswin = helpers.iswin
local function has_gzip()
- local null = helpers.iswin() and 'nul' or '/dev/null'
+ local null = iswin() and 'nul' or '/dev/null'
return os.execute('gzip --help >' .. null .. ' 2>&1') == 0
end
@@ -59,7 +60,7 @@ describe('file reading, writing and bufnew and filter autocommands', function()
os.remove('test.out')
end)
- if not has_gzip() then
+ if iswin() or not has_gzip() then
pending('skipped (missing `gzip` utility)', function() end)
else