Skip to content

Commit d56c451

Browse files
zeertzjqchrisbra
authored andcommitted
patch 9.1.0698: tests: "Untitled" file not removed when running Test_crash1_3 alone
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>
1 parent 322ba91 commit d56c451

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/testdir/test_crash.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ func Test_crash2()
237237
exe buf .. "bw!"
238238
endfunc
239239

240-
func Test_zz_cleanup()
241-
" That file is created at Test_crash1_2() by dialog_changed_uaf
242-
" but cleanup in that Test, doesn't remove it. Let's try again at
240+
func TearDown()
241+
" That file is created at Test_crash1_3() by dialog_changed_uaf
242+
" but cleaning up in that test doesn't remove it. Let's try again at
243243
" the end of this test script
244244
call delete('Untitled')
245245
endfunc

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
698,
707709
/**/
708710
697,
709711
/**/

0 commit comments

Comments
 (0)