From 71662bbb4903f0edb8e2b82f5f9765a89d833bf6 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 2 Oct 2025 07:55:27 +0800 Subject: [PATCH] vim-patch:9.1.0695: tests: test_crash leaves Untitled file around Problem: tests: test_crash leaves Untitled file around Solution: cleanup at the end of the test_crash.vim test file https://github.com/vim/vim/commit/cd83173defedc174d064d27a9db9fc190647b74c Co-authored-by: Christian Brabandt --- test/old/testdir/test_crash.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/old/testdir/test_crash.vim b/test/old/testdir/test_crash.vim index 834a0c014c..900bb9e40b 100644 --- a/test/old/testdir/test_crash.vim +++ b/test/old/testdir/test_crash.vim @@ -224,4 +224,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