vim-patch:9.1.1630: tests: fuzzy bufname completion test doesn't match successfully

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: vim/vim#17992

891353671a
This commit is contained in:
zeertzjq
2025-08-15 06:51:16 +08:00
parent 218ff601c4
commit e38e65b86c
2 changed files with 7 additions and 4 deletions

View File

@@ -3266,11 +3266,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

View File

@@ -493,6 +493,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