]> granicus.if.org Git - vim/commitdiff
patch 8.2.4802: test is not cleaned up v8.2.4802
authorzeertzjq <zeertzjq@outlook.com>
Thu, 21 Apr 2022 10:14:01 +0000 (11:14 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 21 Apr 2022 10:14:01 +0000 (11:14 +0100)
Problem:    Test is not cleaned up.
Solution:   Make test clean up after itself.  Avoid NUL. (closes #10233)

src/testdir/test_autocmd.vim
src/version.c

index fd3631791ad34da789efe6af8b12f6cd6ae4bae1..c4ba10fcb56a655190aebfdbf28aad1f9336658a 100644 (file)
@@ -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\0
+    au QuickfixCmdPre,BufNew,BufReadCmd * q9
   augroup END
-  %bwipe!
   call assert_fails('lv ?a? foo', 'E926:')
 
   augroup aucmd_vimgrep
index ded3a619b97544fcdaa8af3dfbe196692ee7d9ff..5ed7e76edd5c89cee3f1d391e03c4fb23d73ce13 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4802,
 /**/
     4801,
 /**/