Mercurial > vim
annotate src/testdir/test1.in @ 8096:882ba5080c5c v7.4.1342
commit https://github.com/vim/vim/commit/e74e8e7d758e9312165a931f176185f07a64231a
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 16 22:01:30 2016 +0100
patch 7.4.1342
Problem: On Mac OS/X the waittime must be > 0 for connect to work.
Solution: Use select() in a different way. (partly by Kazunobu Kuriyama)
Always use a waittime of 1 or more.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 16 Feb 2016 22:15:04 +0100 |
parents | 91f6a28e010d |
children | 43b8795f1ddf |
rev | line source |
---|---|
7 | 1 |
2 First a simple test to check if the test script works. | |
3 | |
4 If Vim was not compiled with the +eval feature, the small.vim script will be | |
5 set to copy the test.ok file to test.out, so that it looks like the test | |
6 succeeded. Otherwise an empty small.vim is written. small.vim is sourced by | |
7 tests that require the +eval feature or other features that are missing in the | |
8 small version. | |
9 | |
10 If Vim was not compiled with the +windows feature, the tiny.vim script will be | |
11 set like small.vim above. tiny.vim is sourced by tests that require the | |
12 +windows feature or other features that are missing in the tiny version. | |
13 | |
2485
5edcd4ef88df
Small changes to the test files. (John Beckett)
Bram Moolenaar <bram@vim.org>
parents:
2050
diff
changeset
|
14 If Vim was not compiled with the +multi_byte feature, the mbyte.vim script will |
5edcd4ef88df
Small changes to the test files. (John Beckett)
Bram Moolenaar <bram@vim.org>
parents:
2050
diff
changeset
|
15 be set like small.vim above. mbyte.vim is sourced by tests that require the |
7 | 16 +multi_byte feature. |
2050 | 17 Similar logic is applied to the +mzscheme feature, using mzscheme.vim. |
3452 | 18 Similar logic is applied to the +lua feature, using lua.vim. |
7 | 19 |
20 STARTTEST | |
5363 | 21 :" If columns or lines are too small, create wrongtermsize. |
22 :" (Some tests will fail. When columns and/or lines are small) | |
23 :if &lines < 24 || &columns < 80 | sp another | w! wrongtermsize | qa! | endif | |
24 :" | |
7 | 25 :" Write a single line to test.out to check if testing works at all. |
26 :%d | |
27 athis is a test:w! test.out | |
28 :" Create small.vim and tiny.vim empty, create mbyte.vim to skip the test. | |
29 0D:w! small.vim | |
30 :w! tiny.vim | |
31 ae! test.ok | |
32 w! test.out | |
33 qa! | |
34 :w! mbyte.vim | |
2050 | 35 :w! mzscheme.vim |
3452 | 36 :w! lua.vim |
37 :" | |
7 | 38 :" If +multi_byte feature supported, make mbyte.vim empty. |
39 :if has("multi_byte") | sp another | w! mbyte.vim | q | endif | |
3452 | 40 :" |
2050 | 41 :" If +mzscheme feature supported, make mzscheme.vim empty. |
42 :if has("mzscheme") | sp another | w! mzscheme.vim | q | endif | |
3452 | 43 :" |
44 :" If +lua feature supported, make lua.vim empty. | |
45 :if has("lua") | sp another | w! lua.vim | q | endif | |
46 :" | |
7 | 47 :" If +eval feature supported quit here, leaving tiny.vim and small.vim empty. |
48 :" Otherwise write small.vim to skip the test. | |
49 :if 1 | q! | endif | |
50 :w! small.vim | |
51 :" If +windows feature not supported :sp will fail and tiny.vim will be | |
52 :" written to skip the test. | |
53 :sp another | |
54 :wq! tiny.vim | |
55 :qa! | |
56 ENDTEST | |
57 |