Mercurial > vim
changeset 2516:82193fef6172 vim73
Make test 11 pass when there is no gzip program. (John Beckett)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 08 Aug 2010 13:18:47 +0200 |
parents | 33ee6a19522d |
children | fe5709686d05 |
files | src/testdir/test11.in |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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