aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2017-10-14 22:08:50 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-02-19 07:10:42 -0500
commitf4d82c1438c2197d893f678b2fc66cc5dcbc6447 (patch)
tree96d50437e98c3943bfc151012f552f3396ebb42b
parent4f65cd7c0a6386c3554eaf133ca9dd885ec016fe (diff)
downloadrneovim-f4d82c1438c2197d893f678b2fc66cc5dcbc6447.tar.gz
rneovim-f4d82c1438c2197d893f678b2fc66cc5dcbc6447.tar.bz2
rneovim-f4d82c1438c2197d893f678b2fc66cc5dcbc6447.zip
win: enable legacy test 011
-rw-r--r--test/functional/legacy/011_autocommands_spec.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/legacy/011_autocommands_spec.lua b/test/functional/legacy/011_autocommands_spec.lua
index d969a8bd37..c2667d28d2 100644
--- a/test/functional/legacy/011_autocommands_spec.lua
+++ b/test/functional/legacy/011_autocommands_spec.lua
@@ -18,10 +18,9 @@ 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
-if helpers.pending_win32(pending) then return end
-
local function has_gzip()
- return os.execute('gzip --help >/dev/null 2>&1') == 0
+ local null = helpers.iswin() and 'nul' or '/dev/null'
+ return os.execute('gzip --help >' .. null .. ' 2>&1') == 0
end
local function prepare_gz_file(name, text)
@@ -142,6 +141,7 @@ describe('file reading, writing and bufnew and filter autocommands', function()
end)
it('FilterReadPre, FilterReadPost', function()
+ if helpers.pending_win32(pending) then return end
-- Write a special input file for this test block.
write_file('test.out', dedent([[
startstart