diff -r a88237afdb20 -r 48d0d7bf064b src/testdir/test11.in
--- a/src/testdir/test11.in
+++ b/src/testdir/test11.in
@@ -8,13 +8,18 @@
 - 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
+:if !executable("gzip")
+: e! test.ok
+: w! test.out
+: qa!
+:endif
 :let $GZIP = ""
 :au FileChangedShell * echo "caught FileChangedShell"
 :set bin
