]> granicus.if.org Git - vim/commitdiff
patch 8.2.4598: profile completion test sometimes fails v8.2.4598
authorBram Moolenaar <Bram@vim.org>
Sun, 20 Mar 2022 13:40:41 +0000 (13:40 +0000)
committerBram Moolenaar <Bram@vim.org>
Sun, 20 Mar 2022 13:40:41 +0000 (13:40 +0000)
Problem:    Profile completion test sometimes fails.
Solution:   Delete the .res file before running tests.

src/testdir/runtest.vim
src/version.c

index d4c42f332eb7e46fb006c3a2cc0149bcdc4baf86..766f983cf9b7ab47cc16b948417cff9c982a0f19 100644 (file)
@@ -410,6 +410,9 @@ else
   endtry
 endif
 
+" 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_
index 02bd4973a874cfd8401aaebdf1259e3f27eac5fb..1e02a5844ca4153b9b7497a380f4a1ed5aa600d1 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4598,
 /**/
     4597,
 /**/