aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2021-05-23 15:00:11 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2021-11-19 13:45:41 +0900
commitcf4af351a61e01ad1110fcb8fcbead73c9d0850a (patch)
tree9f9a45146f5930f1792456a4c1c8d89468b85979
parent18d7ec36f3a664174b46845d01bccab4eba6fc5b (diff)
downloadrneovim-cf4af351a61e01ad1110fcb8fcbead73c9d0850a.tar.gz
rneovim-cf4af351a61e01ad1110fcb8fcbead73c9d0850a.tar.bz2
rneovim-cf4af351a61e01ad1110fcb8fcbead73c9d0850a.zip
fix: fix GZIP error
-rw-r--r--test/functional/legacy/011_autocommands_spec.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/functional/legacy/011_autocommands_spec.lua b/test/functional/legacy/011_autocommands_spec.lua
index 0fa9290f3c..e40c29a400 100644
--- a/test/functional/legacy/011_autocommands_spec.lua
+++ b/test/functional/legacy/011_autocommands_spec.lua
@@ -72,7 +72,13 @@ describe('file reading, writing and bufnew and filter autocommands', function()
prepare_gz_file('Xtestfile', text1)
--execute('au FileChangedShell * echo "caught FileChangedShell"')
feed_command('set bin')
- feed_command("au FileReadPost *.gz '[,']!gzip -d")
+ if iswin() then
+ feed_command('let $GZIP = ""')
+ feed_command("au FileReadPost *.gz '[,']!gzip -d")
+ else
+ -- Note: GZIP= Does not work in Windows
+ feed_command("au FileReadPost *.gz '[,']!GZIP= gzip -d")
+ end
-- Read and decompress the testfile.
feed_command('$r Xtestfile.gz')
expect('\n'..text1)