From: Christian Brabandt Date: Fri, 27 Feb 2026 18:57:47 +0000 (+0000) Subject: patch 9.2.0070: tests: various tests leave swapfiles around X-Git-Tag: v9.2.0070^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fa34b64228cc385cc9705919edb169ab19e68bc;p=thirdparty%2Fvim.git 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 --- diff --git a/src/testdir/test_ex_mode.vim b/src/testdir/test_ex_mode.vim index 46dafebfa9..686662b176 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\", "xt")', 'E501:') call assert_fails('call feedkeys("Q%d\", "xt")', 'E749:') - close! + bw! endfunc " Test for the :open command @@ -121,7 +121,7 @@ func Test_open_command() call feedkeys("Qopen /bar/\", 'xt') call assert_equal(5, col('.')) call assert_fails('call feedkeys("Qopen /baz/\", "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() diff --git a/src/testdir/test_expand.vim b/src/testdir/test_expand.vim index 84f1c7d110..62bbd92a9e 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 , and outside of sourcing a script diff --git a/src/testdir/test_global.vim b/src/testdir/test_global.vim index 4dddd0fb9c..598a33913d 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\bar"]) exe "g/foo/s/foo\\\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 f2a793104a..0fde64014f 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, /**/