]> granicus.if.org Git - vim/commitdiff
patch 8.0.0032 v8.0.0032
authorBram Moolenaar <Bram@vim.org>
Wed, 12 Oct 2016 15:52:42 +0000 (17:52 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 12 Oct 2016 15:52:42 +0000 (17:52 +0200)
Problem:    Tests may change the input file when something goes wrong.
Solution:   Avoid writing the input file.

src/testdir/test51.in
src/testdir/test67.in
src/testdir/test97.in
src/testdir/test_tabpage.vim
src/version.c

index b4f45d1f7514190e61ff947a66ac4dabe39b70c2..b66befb05fe588ef15e0500a7e8aed404529cfaf 100644 (file)
@@ -24,7 +24,7 @@ STARTTEST
 :hi Crash term='asdf
 :redir END
 :" filter ctermfg and ctermbg, the numbers depend on the terminal
-:e test.out
+:e! test.out
 :%s/ctermfg=\d*/ctermfg=2/
 :%s/ctermbg=\d*/ctermbg=3/
 :" filter out possibly translated error message
index 08b4e3701fa70f96c4f3cfc4ba1c6d3491c5055d..e40cbabd6f7d92bc1815305f2468baa04ce902ff 100644 (file)
@@ -24,7 +24,7 @@ STARTTEST
 :call add(results, "#BufEnter#<buffer>: " . exists("#BufEnter#<buffer>"))
 :edit testfile2.test
 :call add(results, "#BufEnter#<buffer>: " . exists("#BufEnter#<buffer>"))
-:e test.out
+:e! test.out
 :call append(0, results)
 :$d
 :w
index d4ff6d9295ca91896cdc147b03e4bd4a69960ac1..5a4cb1e17ca89a43a39bb05169386c2b0629c2db 100644 (file)
@@ -7,7 +7,7 @@ STARTTEST
 :set shell=doesnotexist
 :" consistent sorting of file names
 :set nofileignorecase
-:e test.out
+:e! test.out
 :$put =glob('Xxx\{')
 :$put =glob('Xxx\$')
 :w! Xxx{
index 4bee7956d71f97bc3fef0108412c969ea55aed14..3f69fb91937d43fff8acb12315de63a54406512a 100644 (file)
@@ -11,6 +11,7 @@ function Test_tabpage()
   0tabnew
   1tabnew
   $tabnew
+  %del
   tabdo call append(line('$'), tabpagenr())
   tabclose! 2
   tabrewind
index 39662f63e9569225ddf9181f81aff0ab23cda20a..6fee4abf730f98177d105e4c6681a531e0956b7f 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    32,
 /**/
     31,
 /**/