]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0695: tests: test_crash leaves Untitled file around v9.1.0695
authorChristian Brabandt <cb@256bit.org>
Sat, 24 Aug 2024 15:34:19 +0000 (17:34 +0200)
committerChristian Brabandt <cb@256bit.org>
Sat, 24 Aug 2024 15:34:19 +0000 (17:34 +0200)
Problem:  tests: test_crash leaves Untitled file around
Solution: cleanup at the end of the test_crash.vim test file

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_crash.vim
src/version.c

index 302d3730b6b12c0e1d3adcb61bc368c29bcd5779..f1843c426611d9929bbd1031fd16c4c70a4c28a5 100644 (file)
@@ -209,7 +209,6 @@ func Test_crash1_3()
   let args = printf(cmn_args, vim, file)
   call term_sendkeys(buf, args)
   call TermWait(buf, 150)
-  call delete('Untitled')
 
   let file = 'crash/nullpointer'
   let cmn_args = "%s -u NONE -i NONE -n -e -s -S %s -c ':qa!'\<cr>"
@@ -231,4 +230,11 @@ func Test_crash2()
   exe buf .. "bw!"
 endfunc
 
+func Test_zz_cleanup()
+  " That file is created at Test_crash1_2() by dialog_changed_uaf
+  " but cleanup in that Test, doesn't remove it. Let's try again at
+  " the end of this test script
+  call delete('Untitled')
+endfunc
+
 " vim: shiftwidth=2 sts=2 expandtab
index f28c66f591afe730921c2be96674bdf799c09874..8252d9f308b034c3f4293ace60344ca721002b12 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    695,
 /**/
     694,
 /**/