forked from aniani/vim
patch 8.0.0032
Problem: Tests may change the input file when something goes wrong. Solution: Avoid writing the input file.
This commit is contained in:
@@ -24,7 +24,7 @@ STARTTEST
|
|||||||
:hi Crash term='asdf
|
:hi Crash term='asdf
|
||||||
:redir END
|
:redir END
|
||||||
:" filter ctermfg and ctermbg, the numbers depend on the terminal
|
:" filter ctermfg and ctermbg, the numbers depend on the terminal
|
||||||
:e test.out
|
:e! test.out
|
||||||
:%s/ctermfg=\d*/ctermfg=2/
|
:%s/ctermfg=\d*/ctermfg=2/
|
||||||
:%s/ctermbg=\d*/ctermbg=3/
|
:%s/ctermbg=\d*/ctermbg=3/
|
||||||
:" filter out possibly translated error message
|
:" filter out possibly translated error message
|
||||||
|
@@ -24,7 +24,7 @@ STARTTEST
|
|||||||
:call add(results, "#BufEnter#<buffer>: " . exists("#BufEnter#<buffer>"))
|
:call add(results, "#BufEnter#<buffer>: " . exists("#BufEnter#<buffer>"))
|
||||||
:edit testfile2.test
|
:edit testfile2.test
|
||||||
:call add(results, "#BufEnter#<buffer>: " . exists("#BufEnter#<buffer>"))
|
:call add(results, "#BufEnter#<buffer>: " . exists("#BufEnter#<buffer>"))
|
||||||
:e test.out
|
:e! test.out
|
||||||
:call append(0, results)
|
:call append(0, results)
|
||||||
:$d
|
:$d
|
||||||
:w
|
:w
|
||||||
|
@@ -7,7 +7,7 @@ STARTTEST
|
|||||||
:set shell=doesnotexist
|
:set shell=doesnotexist
|
||||||
:" consistent sorting of file names
|
:" consistent sorting of file names
|
||||||
:set nofileignorecase
|
:set nofileignorecase
|
||||||
:e test.out
|
:e! test.out
|
||||||
:$put =glob('Xxx\{')
|
:$put =glob('Xxx\{')
|
||||||
:$put =glob('Xxx\$')
|
:$put =glob('Xxx\$')
|
||||||
:w! Xxx{
|
:w! Xxx{
|
||||||
|
@@ -11,6 +11,7 @@ function Test_tabpage()
|
|||||||
0tabnew
|
0tabnew
|
||||||
1tabnew
|
1tabnew
|
||||||
$tabnew
|
$tabnew
|
||||||
|
%del
|
||||||
tabdo call append(line('$'), tabpagenr())
|
tabdo call append(line('$'), tabpagenr())
|
||||||
tabclose! 2
|
tabclose! 2
|
||||||
tabrewind
|
tabrewind
|
||||||
|
@@ -764,6 +764,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
32,
|
||||||
/**/
|
/**/
|
||||||
31,
|
31,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user