vim-patch:partial:8.2.2571: test may leave file behind

Problem:    Test may leave file behind.
Solution:   Delete the temporary file.  Don't profile in the running Vim
            instance.

8c801b374b

This only includes test_quickfix.vim changes.

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq 2024-07-18 06:47:37 +08:00
parent 005f6e1076
commit 286f7ef8a8

View File

@ -5920,6 +5920,16 @@ func Test_qfbuf_update()
call Xqfbuf_update('l') call Xqfbuf_update('l')
endfunc endfunc
func Test_vimgrep_noswapfile()
set noswapfile
call writefile(['one', 'two', 'three'], 'Xgreppie')
vimgrep two Xgreppie
call assert_equal('two', getline('.'))
call delete('Xgreppie')
set swapfile
endfunc
" Test for the :vimgrep 'f' flag (fuzzy match) " Test for the :vimgrep 'f' flag (fuzzy match)
func Xvimgrep_fuzzy_match(cchar) func Xvimgrep_fuzzy_match(cchar)
call s:setup_commands(a:cchar) call s:setup_commands(a:cchar)