mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 16:08:36 +00:00
Merge pull request #2844 from lucc/test10
tests: migrate legacy test 10
This commit is contained in:
@@ -9,7 +9,6 @@ SCRIPTSOURCE := ../../../runtime
|
||||
|
||||
SCRIPTS := \
|
||||
test8.out \
|
||||
test10.out \
|
||||
test12.out \
|
||||
test13.out \
|
||||
test14.out \
|
||||
|
@@ -1,110 +0,0 @@
|
||||
Test for 'errorformat'. This will fail if the quickfix feature was disabled.
|
||||
|
||||
STARTTEST
|
||||
:7/start of errorfile/,/end of errorfile/w! Xerrorfile1
|
||||
:7/start of errorfile/,/end of errorfile/-1w! Xerrorfile2
|
||||
:/start of testfile/,/end of testfile/w! Xtestfile
|
||||
:set efm+==%f=\\,\ line\ %l%*\\D%v%*[^\ ]\ %m
|
||||
:set efm^=%AError\ in\ \"%f\"\ at\ line\ %l:,%Z%p^,%C%m
|
||||
:cf Xerrorfile2
|
||||
:clast
|
||||
:copen
|
||||
:let a=w:quickfix_title
|
||||
:wincmd p
|
||||
lgR=a
|
||||
|
||||
:cf Xerrorfile1
|
||||
grA
|
||||
:cn
|
||||
gRLINE 6, COL 19
|
||||
:cn
|
||||
gRNO COLUMN SPECIFIED
|
||||
:cn
|
||||
gRAGAIN NO COLUMN
|
||||
:cn
|
||||
gRCOL 1
|
||||
:cn
|
||||
gRCOL 2
|
||||
:cn
|
||||
gRCOL 10
|
||||
:cn
|
||||
gRVCOL 10
|
||||
:cn
|
||||
grI
|
||||
:cn
|
||||
gR. SPACE POINTER
|
||||
:cn
|
||||
gR. DOT POINTER
|
||||
:cn
|
||||
gR. DASH POINTER
|
||||
:cn
|
||||
gR. TAB-SPACE POINTER
|
||||
:clast
|
||||
:cprev
|
||||
:cprev
|
||||
:wincmd w
|
||||
:let a=w:quickfix_title
|
||||
:wincmd p
|
||||
lgR=a
|
||||
|
||||
:w! test.out " Write contents of this file
|
||||
:qa!
|
||||
ENDTEST
|
||||
|
||||
start of errorfile
|
||||
"Xtestfile", line 4.12: 1506-045 (S) Undeclared identifier fd_set.
|
||||
"Xtestfile", line 6 col 19; this is an error
|
||||
gcc -c -DHAVE_CONFIsing-prototypes -I/usr/X11R6/include version.c
|
||||
Xtestfile:9: parse error before `asd'
|
||||
make: *** [vim] Error 1
|
||||
in file "Xtestfile" linenr 10: there is an error
|
||||
|
||||
2 returned
|
||||
"Xtestfile", line 11 col 1; this is an error
|
||||
"Xtestfile", line 12 col 2; this is another error
|
||||
"Xtestfile", line 14:10; this is an error in column 10
|
||||
=Xtestfile=, line 15:10; this is another error, but in vcol 10 this time
|
||||
"Xtestfile", linenr 16: yet another problem
|
||||
Error in "Xtestfile" at line 17:
|
||||
x should be a dot
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 17
|
||||
^
|
||||
Error in "Xtestfile" at line 18:
|
||||
x should be a dot
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 18
|
||||
.............^
|
||||
Error in "Xtestfile" at line 19:
|
||||
x should be a dot
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 19
|
||||
--------------^
|
||||
Error in "Xtestfile" at line 20:
|
||||
x should be a dot
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 20
|
||||
^
|
||||
|
||||
Does anyone know what is the problem and how to correction it?
|
||||
"Xtestfile", line 21 col 9: What is the title of the quickfix window?
|
||||
"Xtestfile", line 22 col 9: What is the title of the quickfix window?
|
||||
end of errorfile
|
||||
|
||||
start of testfile
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 2
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 3
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 4
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 5
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 6
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 7
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 8
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 9
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 10
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 11
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 12
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 13
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 14
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 15
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 16
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 17
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 18
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 19
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 20
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 21
|
@@ -1,23 +0,0 @@
|
||||
start of testfile
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 2
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 3
|
||||
xxxxxxxxxxAxxxxxxxxxxxxxxxxxxx line 4
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 5
|
||||
xxxxxxxxxxxxxxxxxLINE 6, COL 19 line 6
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 7
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 8
|
||||
NO COLUMN SPECIFIEDxxxxxxxxxxx line 9
|
||||
AGAIN NO COLUMNxxxxxxxxxxxxxxx line 10
|
||||
COL 1 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 11
|
||||
COL 2xxxxxxxxxxxxxxxxxxxxxxxxx line 12
|
||||
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 13
|
||||
xxxxxxxxCOL 10xxxxxxxxxxxxxxxx line 14
|
||||
xVCOL 10xxxxxxxxxxxxxxxxxxxxxx line 15
|
||||
Ixxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 16
|
||||
xxxx. SPACE POINTERxxxxxxxxxxx line 17
|
||||
xxxxx. DOT POINTERxxxxxxxxxxxx line 18
|
||||
xxxxxx. DASH POINTERxxxxxxxxxx line 19
|
||||
xxxxxxx. TAB-SPACE POINTERxxxx line 20
|
||||
xxxxxxxx:cf Xerrorfile1xxxxxxx line 21
|
||||
xxxxxxxx:cf Xerrorfile2xxxxxxx line 22
|
||||
end of testfile
|
@@ -1,72 +0,0 @@
|
||||
Test for 'errorformat'.
|
||||
|
||||
STARTTEST
|
||||
:/start of errorfile/,/end of errorfile/w! Xerrorfile
|
||||
:/start of testfile/,/end of testfile/w! Xtestfile
|
||||
:cf Xerrorfile
|
||||
rA
|
||||
:cn
|
||||
rB
|
||||
:cn
|
||||
rC
|
||||
:cn
|
||||
rD
|
||||
:cn
|
||||
rE
|
||||
:w! test.out " Write contents of this file
|
||||
:qa!
|
||||
ENDTEST
|
||||
|
||||
start of errorfile
|
||||
|
||||
printf(" %d \n", (number/other)%10 );
|
||||
..................^
|
||||
%CC-E-NOSEMI, Missing ";".
|
||||
at line number 4 in file SYS$DISK:XTESTFILE
|
||||
|
||||
other=10000000;
|
||||
.............^
|
||||
%CC-E-UNDECLARED, In this statement, "oszt" is not declared.
|
||||
at line number 7 in file SYS$DISK:XTESTFILE
|
||||
|
||||
for (i = 0; i<7 ; i++ ){
|
||||
..................^
|
||||
%CC-E-UNDECLARED, In this statement, "i" is not declared.
|
||||
at line number 16 in file SYS$DISK:XTESTFILE
|
||||
|
||||
some other error somewhere here.
|
||||
...........................^
|
||||
%CC-W-WARRING, Sorry, but no expalnation for such an warring.
|
||||
at line number 19 in file SYS$DISK:XTESTFILE
|
||||
|
||||
and finally some other error exactly here.
|
||||
.....................................^
|
||||
%CC-I-INFORMATIONAL, It should be some informational message.
|
||||
at line number 20 in file SYS$DISK:XTESTFILE
|
||||
|
||||
Does anyone know what is the problem and how to correct ?? :)
|
||||
end of errorfile
|
||||
|
||||
start of testfile
|
||||
01234567890123456789012345678901234567
|
||||
line 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 4 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 5 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 6 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 7 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 8 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 9 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 10 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 11 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 12 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 13 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 14 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 15 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 16 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 17 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 18 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 19 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 20 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 21 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 22 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
end of testfile
|
@@ -1,23 +0,0 @@
|
||||
start of testfile
|
||||
01234567890123456789012345678901234567
|
||||
line 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 4 xxxxxxxxxxAxxxxxxxxxxxxxxxxxxx
|
||||
line 5 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 6 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 7 xxxxxBxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 8 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 9 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 10 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 11 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 12 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 13 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 14 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 15 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 16 xxxxxxxxxxCxxxxxxxxxxxxxxxxxxx
|
||||
line 17 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 18 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 19 xxxxxxxxxxxxxxxxxxxDxxxxxxxxxx
|
||||
line 20 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxE
|
||||
line 21 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
line 22 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
end of testfile
|
Reference in New Issue
Block a user