]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1956: tests: test_sort.vim leaves swapfiles behind v9.1.1956
authorChristian Brabandt <cb@256bit.org>
Sat, 6 Dec 2025 09:28:33 +0000 (10:28 +0100)
committerChristian Brabandt <cb@256bit.org>
Sat, 6 Dec 2025 09:28:33 +0000 (10:28 +0100)
Problem:  tests: test_sort.vim leaves swapfiles behind
Solution: Close open buffers using :bw! instead of :close!

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

index 39c4114f015bce66cb4e3b64758c3af895ed075e..1c60e8e42aec9a7d5e37b7d2bad0385bad14801d 100644 (file)
@@ -1500,7 +1500,7 @@ func Test_sort_followed_by_cmd()
   call setline(1, ['3b', '1c', '2a'])
   %sort /\d\+/ " sort alphabetically
   call assert_equal(['2a', '3b', '1c'], getline(1, '$'))
-  close!
+  bw!
 endfunc
 
 " Test for :sort using last search pattern
@@ -1510,7 +1510,7 @@ func Test_sort_last_search_pat()
   call setline(1, ['3b', '1c', '2a'])
   sort //
   call assert_equal(['2a', '3b', '1c'], getline(1, '$'))
-  close!
+  bw!
 endfunc
 
 " Test for :sort with no last search pattern
@@ -1540,7 +1540,7 @@ func Test_sort_with_marks()
   call assert_equal(2, line("'a"))
   call assert_equal(3, line("'b"))
   call assert_equal(1, line("'c"))
-  close!
+  bw!
 endfunc
 
 " Test for sort() using a dict function
index 3df7fce94359d92adc660321555d5b6abec67f31..5c9f5c5c6c180d1eaae80d9ddc2dd1d8e80af833 100644 (file)
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1956,
 /**/
     1955,
 /**/