0
0
mirror of https://github.com/vim/vim.git synced 2025-07-24 10:45:12 -04:00

Make test 11 pass when there is no gzip program. (John Beckett)

This commit is contained in:
Bram Moolenaar 2010-08-08 13:18:47 +02:00
parent 5a7d7cde15
commit 2d231cb89c

View File

@ -8,13 +8,19 @@ Tests for autocommands:
- FileReadPre set options for decompression
- FileReadPost decompress the file
Note: This test will fail if "gzip" is not available.
Note: This test is skipped if "gzip" is not available.
$GZIP is made empty, "-v" would cause trouble.
Use a FileChangedShell autocommand to avoid a prompt for "Xtestfile.gz" being
modified outside of Vim (noticed on Solaris).
STARTTEST
:so small.vim
:" drop out when there is no gzip program
:if !executable("gzip")
: e! test.ok
: w! test.out
: qa!
:endif
:let $GZIP = ""
:au FileChangedShell * echo "caught FileChangedShell"
:set bin