]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0698: tests: "Untitled" file not removed when running Test_crash1_3 alone v9.1.0698
authorzeertzjq <zeertzjq@outlook.com>
Mon, 26 Aug 2024 16:45:37 +0000 (18:45 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 26 Aug 2024 16:45:37 +0000 (18:45 +0200)
Problem:  tests: "Untitled" file not removed when running Test_crash1_3 alone
          with TEST_FILTER (after v9.1.0695)
Solution: Use a TearDown function instead of another test.
          (zeertzjq)

closes: #15578
closes: #15577

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

index 5ec103f6dba26e226bae5a8ece99230c8fb10f9c..b3348761cf43d61fca317fcc16c49008d6d2874d 100644 (file)
@@ -237,9 +237,9 @@ 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
+func TearDown()
+  " That file is created at Test_crash1_3() by dialog_changed_uaf
+  " but cleaning up in that test doesn't remove it. Let's try again at
   " the end of this test script
   call delete('Untitled')
 endfunc
index 7f88c8c6836bff778c26055c795cbac8bc2c67d6..314a3207a88c448a60aad719713fb123b9555cb1 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    698,
 /**/
     697,
 /**/