]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1630: tests: fuzzy bufname completion test doesn't match successfully v9.1.1630
authorzeertzjq <zeertzjq@outlook.com>
Thu, 14 Aug 2025 18:34:08 +0000 (20:34 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 14 Aug 2025 18:34:08 +0000 (20:34 +0200)
Problem:  tests: fuzzy buffer name completion test doesn't match
          successfully (after 9.1.1627).
Solution: Update pattern to account for the change in case sensitivity.
          Also mark Test_search_stat_option() as flaky as it can still
          sometimes fail (zeertzjq).

closes: #17992

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_cmdline.vim
src/testdir/test_search_stat.vim
src/version.c

index ef311ed7390c74f13d4825b693cf4c1e95c3a619..523bde86be651f7a6f176ae78b1fa7c76b582d98 100644 (file)
@@ -3220,11 +3220,11 @@ func Test_fuzzy_completion_bufname_fullpath()
   edit Xcmd/Xstate/Xfile.js
   cd Xcmd/Xstate
   enew
-  call feedkeys(":b CmdStateFile\<Tab>\<C-B>\"\<CR>", 'tx')
-  call assert_equal('"b CmdStateFile', @:)
+  call feedkeys(":b cmdstatefile\<Tab>\<C-B>\"\<CR>", 'tx')
+  call assert_equal('"b cmdstatefile', @:)
   set wildoptions=fuzzy
-  call feedkeys(":b CmdStateFile\<Tab>\<C-B>\"\<CR>", 'tx')
-  call assert_equal('"b CmdStateFile', @:)
+  call feedkeys(":b cmdstatefile\<Tab>\<C-B>\"\<CR>", 'tx')
+  call assert_match('Xcmd/Xstate/Xfile.js$', @:)
   cd -
   set wildoptions&
 endfunc
index 38f71a2d5b352997588b1dd4a960464dd250d69f..fa3ddec2dbf1e513e70dcc976b1afaf7c6e6ea51 100644 (file)
@@ -492,6 +492,9 @@ endfunc
 func Test_search_stat_option()
   " Asan causes wrong results, because the search times out
   CheckNotAsan
+  " Mark the test as flaky as the search may still occasionally time out
+  let g:test_is_flaky = 1
+
   enew
   set shortmess-=S
   set maxsearchcount=999
index 14178370aee2e90f6a0307fe32892554f2f78dc7..deae1c7bbd4b31c82c9902233f89295b7c9554b7 100644 (file)
@@ -719,6 +719,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1630,
 /**/
     1629,
 /**/