]> granicus.if.org Git - vim/commitdiff
patch 8.2.3579: CI sometimes fails for MinGW v8.2.3579
authorChristian Brabandt <cb@256bit.org>
Wed, 3 Nov 2021 22:31:44 +0000 (22:31 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 3 Nov 2021 22:31:44 +0000 (22:31 +0000)
Problem:    CI sometimes fails for MinGW.
Solution:   Use backslashes in HandleSwapExists(). (Christian Brabandt,
            closes #9078)

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

index cc45393da6bf51f86e9d18f8d43ab48da5f318fc..cd36839064c2d91c57ff722fb5d6c25be24b5d53 100644 (file)
@@ -93,7 +93,12 @@ set encoding=utf-8
 " REDIR_TEST_TO_NULL has a very permissive SwapExists autocommand which is for
 " the test_name.vim file itself. Replace it here with a more restrictive one,
 " so we still catch mistakes.
-let s:test_script_fname = expand('%')
+if has("win32")
+  " replace any '/' directory separators by '\\'
+  let s:test_script_fname = substitute(expand('%'), '/', '\\', 'g')
+else
+  let s:test_script_fname = expand('%')
+endif
 au! SwapExists * call HandleSwapExists()
 func HandleSwapExists()
   if exists('g:ignoreSwapExists')
index 9c0f845cb8e6d761fb83292460e91ed60e53edba..2dd061edaeceb0a821e7b9a990232ad5d45acf32 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3579,
 /**/
     3578,
 /**/