mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
005f6e1076
commit
286f7ef8a8
@ -5920,6 +5920,16 @@ func Test_qfbuf_update()
|
||||
call Xqfbuf_update('l')
|
||||
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)
|
||||
func Xvimgrep_fuzzy_match(cchar)
|
||||
call s:setup_commands(a:cchar)
|
||||
|
Loading…
Reference in New Issue
Block a user