diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-21 18:28:37 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-04-21 19:07:50 +0800 |
commit | 5e9afca1c19914cdf6f81685c7950ab180278b1f (patch) | |
tree | fa4cdcbcd401c058af5811a17a7e0d0028847cc4 | |
parent | e69cb86750d0e4b91d226e827d1eae2a98639777 (diff) | |
download | rneovim-5e9afca1c19914cdf6f81685c7950ab180278b1f.tar.gz rneovim-5e9afca1c19914cdf6f81685c7950ab180278b1f.tar.bz2 rneovim-5e9afca1c19914cdf6f81685c7950ab180278b1f.zip |
vim-patch:8.2.4802: test is not cleaned up
Problem: Test is not cleaned up.
Solution: Make test clean up after itself. Avoid NUL. (closes vim/vim#10233)
https://github.com/vim/vim/commit/7851c69a120ea6ce8c122dd7198adbe5aec83ea5
Adapt test_autocmd_vimgrep() to Nvim.
-rw-r--r-- | src/nvim/testdir/test_autocmd.vim | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nvim/testdir/test_autocmd.vim b/src/nvim/testdir/test_autocmd.vim index 5913032195..13be82a71d 100644 --- a/src/nvim/testdir/test_autocmd.vim +++ b/src/nvim/testdir/test_autocmd.vim @@ -2713,6 +2713,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. @@ -2748,12 +2750,12 @@ func Test_autocmd_closing_cmdwin() endfunc func Test_autocmd_vimgrep() - %bwipe! augroup aucmd_vimgrep au QuickfixCmdPre,BufNew,BufReadCmd * sb - au QuickfixCmdPre,BufNew,BufReadCmd * q9 + " Nvim makes aucmd_win the last window + " au QuickfixCmdPre,BufNew,BufReadCmd * q9 + au QuickfixCmdPre,BufNew,BufReadCmd * exe 'q' .. (winnr('$') - (win_gettype(winnr('$')) == 'autocmd')) augroup END - %bwipe! call assert_fails('lv ?a? foo', 'E926:') augroup aucmd_vimgrep |