commit 286f7ef8a8cfe2f712f3593a237b2104f6ec6851
parent 005f6e1076296e8e91848a019b5e4bef99c3e154
Author: zeertzjq <zeertzjq@outlook.com>
Date: Thu, 18 Jul 2024 06:47:37 +0800
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.
https://github.com/vim/vim/commit/8c801b374b7d32419cd877353495b801c5e1382a
This only includes test_quickfix.vim changes.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/test/old/testdir/test_quickfix.vim b/test/old/testdir/test_quickfix.vim
@@ -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)