1
0
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:
Bram Moolenaar
2016-10-12 17:52:42 +02:00
parent e8ef3a0934
commit 3e8474dd50
5 changed files with 6 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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{

View File

@@ -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

View File

@@ -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,
/**/ /**/