aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-20 09:17:33 +0800
committerGitHub <noreply@github.com>2023-04-20 09:17:33 +0800
commitdbcd1985d13b02ab7a547d0b97d4ede28fa49b96 (patch)
treebf01512b3dd3a08e629b007d75b7fb00352ea8dd
parente81331c2b0b6490cfc4204ffd41b7d3df6b2cd8b (diff)
downloadrneovim-dbcd1985d13b02ab7a547d0b97d4ede28fa49b96.tar.gz
rneovim-dbcd1985d13b02ab7a547d0b97d4ede28fa49b96.tar.bz2
rneovim-dbcd1985d13b02ab7a547d0b97d4ede28fa49b96.zip
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>
-rw-r--r--test/old/testdir/runtest.vim3
1 files changed, 3 insertions, 0 deletions
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_