]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1945: tests: Test_getbufwintabinfo() leaves swapfiles behind v9.1.1945
authorChristian Brabandt <cb@256bit.org>
Tue, 2 Dec 2025 19:59:54 +0000 (19:59 +0000)
committerChristian Brabandt <cb@256bit.org>
Tue, 2 Dec 2025 19:59:54 +0000 (19:59 +0000)
Problem:  tests: Test_getbufwintabinfo() leaves swapfiles behind
Solution: Close all open buffers using %bw!

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

index 96dc0602330942c6108ff27c87fba094ab269fae..1d2418c8c4d2ba6b9b37989ce04c729f6a37be08 100644 (file)
@@ -111,6 +111,7 @@ func Test_getbufwintabinfo()
   call assert_true(winlist[2].quickfix)
   call assert_false(winlist[2].loclist)
   wincmd t | only
+  %bw!
 endfunc
 
 function Test_get_wininfo_leftcol()
index 000561a9e088abfeec99bc476a926664b4b74fba..9daa59bfd79f6931bd99e27f170360c3e6ced1ad 100644 (file)
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1945,
 /**/
     1944,
 /**/