Mercurial > vim
changeset 36050:a8dc83448e70 v9.1.0698
patch 9.1.0698: tests: "Untitled" file not removed when running Test_crash1_3 alone
Commit: https://github.com/vim/vim/commit/d56c451e1c05310562c5282352d7bb287c16323c
Author: zeertzjq <zeertzjq@outlook.com>
Date: Mon Aug 26 18:45:37 2024 +0200
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>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 26 Aug 2024 19:00:07 +0200 |
parents | ff6c667f1be9 |
children | eacc13956f22 |
files | src/testdir/test_crash.vim src/version.c |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_crash.vim +++ b/src/testdir/test_crash.vim @@ -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