Skip to content

Commit 3e8474d

Browse files
committed
patch 8.0.0032
Problem: Tests may change the input file when something goes wrong. Solution: Avoid writing the input file.
1 parent e8ef3a0 commit 3e8474d

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

src/testdir/test51.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ STARTTEST
2424
:hi Crash term='asdf
2525
:redir END
2626
:" filter ctermfg and ctermbg, the numbers depend on the terminal
27-
:e test.out
27+
:e! test.out
2828
:%s/ctermfg=\d*/ctermfg=2/
2929
:%s/ctermbg=\d*/ctermbg=3/
3030
:" filter out possibly translated error message

src/testdir/test67.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ STARTTEST
2424
:call add(results, "#BufEnter#<buffer>: " . exists("#BufEnter#<buffer>"))
2525
:edit testfile2.test
2626
:call add(results, "#BufEnter#<buffer>: " . exists("#BufEnter#<buffer>"))
27-
:e test.out
27+
:e! test.out
2828
:call append(0, results)
2929
:$d
3030
:w

src/testdir/test97.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ STARTTEST
77
:set shell=doesnotexist
88
:" consistent sorting of file names
99
:set nofileignorecase
10-
:e test.out
10+
:e! test.out
1111
:$put =glob('Xxx\{')
1212
:$put =glob('Xxx\$')
1313
:w! Xxx{

src/testdir/test_tabpage.vim

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ function Test_tabpage()
1111
0tabnew
1212
1tabnew
1313
$tabnew
14+
%del
1415
tabdo call append(line('$'), tabpagenr())
1516
tabclose! 2
1617
tabrewind

src/version.c

+2
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
32,
767769
/**/
768770
31,
769771
/**/

0 commit comments

Comments
 (0)