summaryrefslogtreecommitdiff
path: root/src/testdir
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-08-08 13:18:47 +0200
committerBram Moolenaar <Bram@vim.org>2010-08-08 13:18:47 +0200
commit2d231cb89c2586a9ba94d8d0e5ca7d761c56e0de (patch)
tree4681387f5743f92bc5986a08fe7a4e94d548f14b /src/testdir
parent5a7d7cde15baaf0c7d48eeb72d3a94381a5cf427 (diff)
downloadvim-git-2d231cb89c2586a9ba94d8d0e5ca7d761c56e0de.tar.gz
Make test 11 pass when there is no gzip program. (John Beckett)
Diffstat (limited to 'src/testdir')
-rw-r--r--src/testdir/test11.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/testdir/test11.in b/src/testdir/test11.in
index 007698bac..47de470a2 100644
--- a/src/testdir/test11.in
+++ b/src/testdir/test11.in
@@ -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