aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-07-18 06:47:37 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-07-18 07:00:07 +0800
commit286f7ef8a8cfe2f712f3593a237b2104f6ec6851 (patch)
treea97f2033b90453579daac03bc7a178277a6a532c
parent005f6e1076296e8e91848a019b5e4bef99c3e154 (diff)
downloadrneovim-286f7ef8a8cfe2f712f3593a237b2104f6ec6851.tar.gz
rneovim-286f7ef8a8cfe2f712f3593a237b2104f6ec6851.tar.bz2
rneovim-286f7ef8a8cfe2f712f3593a237b2104f6ec6851.zip
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>
-rw-r--r--test/old/testdir/test_quickfix.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/old/testdir/test_quickfix.vim b/test/old/testdir/test_quickfix.vim
index 6376a52cfa..bba68bcdc7 100644
--- 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)