From dbcd1985d13b02ab7a547d0b97d4ede28fa49b96 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 20 Apr 2023 09:17:33 +0800 Subject: 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 --- test/old/testdir/runtest.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/old/testdir/runtest.vim b/test/old/testdir/runtest.vim index 5ee9c9fa71..95651afd49 100644 --- 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_ -- cgit