Skip to content

Commit 21039e5

Browse files
committed
updated for version 7.3.818
Problem: When test 40 fails because of a bad build it may leave files behind that cause it to fail later. Solution: Let the file names start with "X".
1 parent 07289cb commit 21039e5

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

src/testdir/test40.in

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,29 @@ Test for "*Cmd" autocommands
33
STARTTEST
44
:so small.vim
55
:/^start/,$w! Xxx " write lines below to Xxx
6-
:au BufReadCmd testA 0r Xxx|$del
7-
:e testA " will read text of Xxd instead
8-
:au BufWriteCmd testA call append(line("$"), "write")
6+
:au BufReadCmd XtestA 0r Xxx|$del
7+
:e XtestA " will read text of Xxd instead
8+
:au BufWriteCmd XtestA call append(line("$"), "write")
99
:w " will append a line to the file
10-
:r testA " should not read anything
10+
:r XtestA " should not read anything
1111
: " now we have:
1212
: " 1 start of Xxx
1313
: " 2 test40
1414
: " 3 end of Xxx
1515
: " 4 write
16-
:au FileReadCmd testB '[r Xxx
17-
:2r testB " will read Xxx below line 2 instead
16+
:au FileReadCmd XtestB '[r Xxx
17+
:2r XtestB " will read Xxx below line 2 instead
1818
: " 1 start of Xxx
1919
: " 2 test40
2020
: " 3 start of Xxx
2121
: " 4 test40
2222
: " 5 end of Xxx
2323
: " 6 end of Xxx
2424
: " 7 write
25-
:au FileWriteCmd testC '[,']copy $
25+
:au FileWriteCmd XtestC '[,']copy $
2626
4GA1
27-
:4,5w testC " will copy lines 4 and 5 to the end
28-
:r testC " should not read anything
27+
:4,5w XtestC " will copy lines 4 and 5 to the end
28+
:r XtestC " should not read anything
2929
: " 1 start of Xxx
3030
: " 2 test40
3131
: " 3 start of Xxx
@@ -35,14 +35,14 @@ STARTTEST
3535
: " 7 write
3636
: " 8 test401
3737
: " 9 end of Xxx
38-
:au FILEAppendCmd testD '[,']w! test.out
39-
:w >>testD " will write all lines to test.out
40-
:$r testD " should not read anything
38+
:au FILEAppendCmd XtestD '[,']w! test.out
39+
:w >>XtestD " will write all lines to test.out
40+
:$r XtestD " should not read anything
4141
:$w >>test.out " append "end of Xxx" to test.out
42-
:au BufReadCmd testE 0r test.out|$del
43-
:sp testE " split window with test.out
42+
:au BufReadCmd XtestE 0r test.out|$del
43+
:sp XtestE " split window with test.out
4444
5Goasdf:"
45-
:au BufWriteCmd testE w! test.out
45+
:au BufWriteCmd XtestE w! test.out
4646
:wall " will write other window to test.out
4747
: " 1 start of Xxx
4848
: " 2 test40

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,8 @@ static char *(features[]) =
725725

726726
static int included_patches[] =
727727
{ /* Add new patch number below this line */
728+
/**/
729+
818,
728730
/**/
729731
817,
730732
/**/

0 commit comments

Comments
 (0)