commit dbcd1985d13b02ab7a547d0b97d4ede28fa49b96
parent e81331c2b0b6490cfc4204ffd41b7d3df6b2cd8b
Author: zeertzjq <zeertzjq@outlook.com>
Date: Thu, 20 Apr 2023 09:17:33 +0800
vim-patch:8.2.4598: profile completion test sometimes fails (#23208)
Problem: Profile completion test sometimes fails.
Solution: Delete the .res file before running tests.
https://github.com/vim/vim/commit/7e0be3ea211748a77d32cb1d3d35ecfc246cf0f2
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/test/old/testdir/runtest.vim b/test/old/testdir/runtest.vim
@@ -497,6 +497,9 @@ let s:flaky_tests = [
\ 'Test_termwinscroll()',
\ ]
+" Delete the .res file, it may change behavior for completion
+call delete(fnamemodify(g:testname, ':r') .. '.res')
+
" Locate Test_ functions and execute them.
redir @q
silent function /^Test_