Commit: patch 9.1.1945: tests: Test_getbufwintabinfo() leaves swapfiles behind

2 views
Skip to first unread message

Christian Brabandt

unread,
Dec 2, 2025, 3:15:40 PM (15 hours ago) Dec 2
to vim...@googlegroups.com
patch 9.1.1945: tests: Test_getbufwintabinfo() leaves swapfiles behind

Commit: https://github.com/vim/vim/commit/397ad21268904d977ffe86db684a5d460daba8ed
Author: Christian Brabandt <c...@256bit.org>
Date: Tue Dec 2 19:59:54 2025 +0000

patch 9.1.1945: tests: Test_getbufwintabinfo() leaves swapfiles behind

Problem: tests: Test_getbufwintabinfo() leaves swapfiles behind
Solution: Close all open buffers using %bw!

Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/testdir/test_bufwintabinfo.vim b/src/testdir/test_bufwintabinfo.vim
index 96dc06023..1d2418c8c 100644
--- a/src/testdir/test_bufwintabinfo.vim
+++ b/src/testdir/test_bufwintabinfo.vim
@@ -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()
diff --git a/src/version.c b/src/version.c
index 000561a9e..9daa59bfd 100644
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1945,
/**/
1944,
/**/
Reply all
Reply to author
Forward
0 new messages