]> granicus.if.org Git - vim/commitdiff
Make test 11 pass when there is no gzip program. (John Beckett)
authorBram Moolenaar <Bram@vim.org>
Sun, 8 Aug 2010 11:18:47 +0000 (13:18 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 8 Aug 2010 11:18:47 +0000 (13:18 +0200)
src/testdir/test11.in

index 007698bac3d7815ee5991e296bbe859b8456e79d..47de470a2d8c3caae41243721ed75113f679ffd4 100644 (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