patch 9.2.0070: tests: various tests leave swapfiles around

Commit: 
https://github.com/vim/vim/commit/2fa34b64228cc385cc9705919edb169ab19e68bc
Author: Christian Brabandt <[email protected]>
Date:   Fri Feb 27 18:57:47 2026 +0000

    patch 9.2.0070: tests: various tests leave swapfiles around
    
    Problem:  tests: various tests leave swapfiles around
    Solution: close open buffers using :bw! instead of :close!
    
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/testdir/test_ex_mode.vim b/src/testdir/test_ex_mode.vim
index 46dafebfa..686662b17 100644
--- a/src/testdir/test_ex_mode.vim
+++ b/src/testdir/test_ex_mode.vim
@@ -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, "       abc")
   call feedkeys("Qappend!
pqr
xyz
.
visual
", 'xt')
   call assert_equal(["    abc", "         pqr", "         xyz"], getline(1, 
'$'))
-  close!
+  bw!
 
   new
   call feedkeys("Qappend
a\
.", 'xt')
   call assert_equal(['a\'], getline(1, '$'))
-  close!
+  bw!
 endfunc
 
 func Test_ex_mode_errors()
diff --git a/src/testdir/test_expand.vim b/src/testdir/test_expand.vim
index 84f1c7d11..62bbd92a9 100644
--- a/src/testdir/test_expand.vim
+++ b/src/testdir/test_expand.vim
@@ -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
diff --git a/src/testdir/test_global.vim b/src/testdir/test_global.vim
index 4dddd0fb9..598a33913 100644
--- a/src/testdir/test_global.vim
+++ b/src/testdir/test_global.vim
@@ -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.
diff --git a/src/version.c b/src/version.c
index f2a793104..0fde64014 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    70,
 /**/
     69,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1vw34K-00G5es-Ny%40256bit.org.

Raspunde prin e-mail lui