From e38e65b86c473597414b1af244e74745aa4f48eb Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 15 Aug 2025 06:51:16 +0800 Subject: [PATCH] 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 https://github.com/vim/vim/commit/891353671a3bccc21854c12178f8e6623792f115 --- test/old/testdir/test_cmdline.vim | 8 ++++---- test/old/testdir/test_search_stat.vim | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/test/old/testdir/test_cmdline.vim b/test/old/testdir/test_cmdline.vim index 241c858f8f..1065f7f307 100644 --- a/test/old/testdir/test_cmdline.vim +++ b/test/old/testdir/test_cmdline.vim @@ -3266,11 +3266,11 @@ func Test_fuzzy_completion_bufname_fullpath() edit Xcmd/Xstate/Xfile.js cd Xcmd/Xstate enew - call feedkeys(":b CmdStateFile\\\"\", 'tx') - call assert_equal('"b CmdStateFile', @:) + call feedkeys(":b cmdstatefile\\\"\", 'tx') + call assert_equal('"b cmdstatefile', @:) set wildoptions=fuzzy - call feedkeys(":b CmdStateFile\\\"\", 'tx') - call assert_equal('"b CmdStateFile', @:) + call feedkeys(":b cmdstatefile\\\"\", 'tx') + call assert_match('Xcmd/Xstate/Xfile.js$', @:) cd - set wildoptions& endfunc diff --git a/test/old/testdir/test_search_stat.vim b/test/old/testdir/test_search_stat.vim index 5281f785c7..ed1d96b64d 100644 --- a/test/old/testdir/test_search_stat.vim +++ b/test/old/testdir/test_search_stat.vim @@ -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