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
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