aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2021-05-24 11:21:13 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2021-11-19 13:45:41 +0900
commit9bcbb7f9d24072d05671f56a3bca0ce3937ce0c5 (patch)
treed39ed1c6303572924c55fb930d6db526ca091256
parentcf4af351a61e01ad1110fcb8fcbead73c9d0850a (diff)
downloadrneovim-9bcbb7f9d24072d05671f56a3bca0ce3937ce0c5.tar.gz
rneovim-9bcbb7f9d24072d05671f56a3bca0ce3937ce0c5.tar.bz2
rneovim-9bcbb7f9d24072d05671f56a3bca0ce3937ce0c5.zip
fix: shell problem
-rw-r--r--test/functional/legacy/011_autocommands_spec.lua11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/functional/legacy/011_autocommands_spec.lua b/test/functional/legacy/011_autocommands_spec.lua
index e40c29a400..79a1e61b12 100644
--- a/test/functional/legacy/011_autocommands_spec.lua
+++ b/test/functional/legacy/011_autocommands_spec.lua
@@ -72,13 +72,12 @@ 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')
- 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")
+ feed_command("call setenv('GZIP', v:null)")
+ if not iswin() then
+ -- Ignore non standard shell configuration
+ feed_command('set shell=sh')
end
+ feed_command("au FileReadPost *.gz '[,']!gzip -d")
-- Read and decompress the testfile.
feed_command('$r Xtestfile.gz')
expect('\n'..text1)