From cf4af351a61e01ad1110fcb8fcbead73c9d0850a Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Sun, 23 May 2021 15:00:11 +0900 Subject: fix: fix GZIP error --- test/functional/legacy/011_autocommands_spec.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) -- cgit