diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-21 11:14:01 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-04-21 11:14:01 +0100 |
commit | 7851c69a120ea6ce8c122dd7198adbe5aec83ea5 (patch) | |
tree | 1ed81501d6227c56df18502b66f332a7bf63ae0b /src/testdir/test_autocmd.vim | |
parent | 3fd7480cd25f1e939fc2362e0644d497bcc81b71 (diff) |
patch 8.2.4802: test is not cleaned upv8.2.4802
Problem: Test is not cleaned up.
Solution: Make test clean up after itself. Avoid NUL. (closes #10233)
Diffstat (limited to 'src/testdir/test_autocmd.vim')
-rw-r--r-- | src/testdir/test_autocmd.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim index fd3631791a..c4ba10fcb5 100644 --- a/src/testdir/test_autocmd.vim +++ b/src/testdir/test_autocmd.vim @@ -3004,6 +3004,8 @@ func Test_autocmd_quit_psearch() augroup aucmd_win_test au! augroup END + new + pclose endfunc " Fuzzer found some strange combination that caused a crash. @@ -3037,12 +3039,10 @@ func Test_autocmd_closing_cmdwin() endfunc func Test_autocmd_vimgrep() - %bwipe! augroup aucmd_vimgrep au QuickfixCmdPre,BufNew,BufReadCmd * sb - au QuickfixCmdPre,BufNew,BufReadCmd * q9 + au QuickfixCmdPre,BufNew,BufReadCmd * q9 augroup END - %bwipe! call assert_fails('lv ?a? foo', 'E926:') augroup aucmd_vimgrep |