]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0070: tests: various tests leave swapfiles around v9.2.0070
authorChristian Brabandt <cb@256bit.org>
Fri, 27 Feb 2026 18:57:47 +0000 (18:57 +0000)
committerChristian Brabandt <cb@256bit.org>
Fri, 27 Feb 2026 18:57:47 +0000 (18:57 +0000)
Problem:  tests: various tests leave swapfiles around
Solution: close open buffers using :bw! instead of :close!

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_ex_mode.vim
src/testdir/test_expand.vim
src/testdir/test_global.vim
src/version.c

index 46dafebfa977089348617d06eb68acbf8b70b19b..686662b1760995b4e091b6674477ec5579a7a524 100644 (file)
@@ -109,7 +109,7 @@ func Test_Ex_emptybuf()
   call setline(1, "abc")
   call assert_fails('call feedkeys("Q\<CR>", "xt")', 'E501:')
   call assert_fails('call feedkeys("Q%d\<CR>", "xt")', 'E749:')
-  close!
+  bw!
 endfunc
 
 " Test for the :open command
@@ -121,7 +121,7 @@ func Test_open_command()
   call feedkeys("Qopen /bar/\<CR>", 'xt')
   call assert_equal(5, col('.'))
   call assert_fails('call feedkeys("Qopen /baz/\<CR>", "xt")', 'E479:')
-  close!
+  bw!
 endfunc
 
 func Test_open_command_flush_line()
@@ -237,12 +237,12 @@ func Test_Ex_append()
   call setline(1, "\t   abc")
   call feedkeys("Qappend!\npqr\nxyz\n.\nvisual\n", 'xt')
   call assert_equal(["\t   abc", "\t   pqr", "\t   xyz"], getline(1, '$'))
-  close!
+  bw!
 
   new
   call feedkeys("Qappend\na\\\n.", 'xt')
   call assert_equal(['a\'], getline(1, '$'))
-  close!
+  bw!
 endfunc
 
 func Test_ex_mode_errors()
index 84f1c7d110d0a1f5c34efa645548a2c5ae1f28db..62bbd92a9e7afd1376085226e5f11d4d855069fd 100644 (file)
@@ -123,7 +123,7 @@ func Test_expandcmd()
   endif
 
   unlet $FOO
-  close!
+  bw!
 endfunc
 
 " Test for expanding <sfile>, <slnum> and <sflnum> outside of sourcing a script
index 4dddd0fb9cb721adbf665cd63362a90ef17c4d09..598a33913dae8eb0a9e928c9414e85eeb65b0681 100644 (file)
@@ -86,7 +86,7 @@ func Test_global_print()
   endtry
   call assert_equal('yes', caught)
 
-  close!
+  bw!
 endfunc
 
 func Test_global_empty_pattern()
@@ -110,7 +110,7 @@ func Test_global_newline()
   call setline(1, ["foo\<NL>bar"])
   exe "g/foo/s/foo\\\<NL>bar/xyz/"
   call assert_equal('xyz', getline(1))
-  close!
+  bw!
 endfunc
 
 " Test :g with ? as delimiter.
index f2a793104ad43db4562e53e52641c4d465d99a28..0fde64014fe661dd64915054a19d0d4686ce1df9 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    70,
 /**/
     69,
 /**/