From dccc35e6e93d856729586b18619087f6f31f0613 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Wed, 10 Dec 2025 13:15:25 -0500 Subject: [PATCH] vim-patch:8.2.2571: test may leave file behind Problem: Test may leave file behind. Solution: Delete the temporary file. Don't profile in the running Vim instance. https://github.com/vim/vim/commit/8c801b374b7d32419cd877353495b801c5e1382a Co-authored-by: Bram Moolenaar --- test/old/testdir/test_profile.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/old/testdir/test_profile.vim b/test/old/testdir/test_profile.vim index 3195f71b18..3720e6ce54 100644 --- a/test/old/testdir/test_profile.vim +++ b/test/old/testdir/test_profile.vim @@ -614,7 +614,7 @@ func Test_vim9_profiling() call writefile(lines, 'Xprofile_crash.vim') call system(GetVimCommandClean() . ' -es -c "so Xprofile_crash.vim" -c q') call assert_equal(0, v:shell_error) - call CheckScriptSuccess(lines) + call assert_true(readfile('Xprofile_crash.log')->len() > 10) call delete('Xprofile_crash.vim') call delete('Xprofile_crash.log') endfunc