Mercurial > vim
comparison src/testdir/test11.in @ 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 | 18ee39301b82 |
children | 9d5b8b015e5f |
comparison
equal
deleted
inserted
replaced
2515:33ee6a19522d | 2516:82193fef6172 |
---|---|
6 - FilterReadPre substituting characters in the temp file | 6 - FilterReadPre substituting characters in the temp file |
7 - FilterReadPost substituting characters after filtering | 7 - FilterReadPost substituting characters after filtering |
8 - FileReadPre set options for decompression | 8 - FileReadPre set options for decompression |
9 - FileReadPost decompress the file | 9 - FileReadPost decompress the file |
10 | 10 |
11 Note: This test will fail if "gzip" is not available. | 11 Note: This test is skipped if "gzip" is not available. |
12 $GZIP is made empty, "-v" would cause trouble. | 12 $GZIP is made empty, "-v" would cause trouble. |
13 Use a FileChangedShell autocommand to avoid a prompt for "Xtestfile.gz" being | 13 Use a FileChangedShell autocommand to avoid a prompt for "Xtestfile.gz" being |
14 modified outside of Vim (noticed on Solaris). | 14 modified outside of Vim (noticed on Solaris). |
15 | 15 |
16 STARTTEST | 16 STARTTEST |
17 :so small.vim | 17 :so small.vim |
18 :" drop out when there is no gzip program | |
19 :if !executable("gzip") | |
20 : e! test.ok | |
21 : w! test.out | |
22 : qa! | |
23 :endif | |
18 :let $GZIP = "" | 24 :let $GZIP = "" |
19 :au FileChangedShell * echo "caught FileChangedShell" | 25 :au FileChangedShell * echo "caught FileChangedShell" |
20 :set bin | 26 :set bin |
21 :au FileWritePre *.gz '[,']!gzip | 27 :au FileWritePre *.gz '[,']!gzip |
22 :au FileWritePost *.gz undo | 28 :au FileWritePost *.gz undo |