blob: 19e8652fe580800cd97a27cf32eae98411a60f04 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001Test for 'errorformat'.
2
3STARTTEST
4:so small.vim
5:/start of errorfile/,/end of errorfile/w! Xerrorfile
6:/start of testfile/,/end of testfile/w! Xtestfile
7:cf Xerrorfile
8rA
9:cn
10rB
11:cn
12rC
13:cn
14rD
15:cn
16rE
17:w! test.out " Write contents of this file
18:qa!
19ENDTEST
20
21start of errorfile
22
23 printf(" %d \n", (number/other)%10 );
24..................^
25%CC-E-NOSEMI, Missing ";".
26at line number 4 in file SYS$DISK:XTESTFILE
27
28 other=10000000;
29.............^
30%CC-E-UNDECLARED, In this statement, "oszt" is not declared.
31at line number 7 in file SYS$DISK:XTESTFILE
32
33 for (i = 0; i<7 ; i++ ){
34..................^
35%CC-E-UNDECLARED, In this statement, "i" is not declared.
36at line number 16 in file SYS$DISK:XTESTFILE
37
38some other error somewhere here.
39...........................^
40%CC-W-WARRING, Sorry, but no expalnation for such an warring.
41at line number 19 in file SYS$DISK:XTESTFILE
42
43and finally some other error exactly here.
44.....................................^
45%CC-I-INFORMATIONAL, It should be some informational message.
46at line number 20 in file SYS$DISK:XTESTFILE
47
48Does anyone know what is the problem and how to correct ?? :)
49end of errorfile
50
51start of testfile
5201234567890123456789012345678901234567
53line 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
54line 4 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
55line 5 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
56line 6 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
57line 7 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
58line 8 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
59line 9 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
60line 10 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
61line 11 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
62line 12 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
63line 13 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
64line 14 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
65line 15 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
66line 16 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
67line 17 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
68line 18 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
69line 19 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
70line 20 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
71line 21 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
72line 22 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
73end of testfile