changeset 26092:6a0f603c52a9 v8.2.3579

patch 8.2.3579: CI sometimes fails for MinGW Commit: https://github.com/vim/vim/commit/4b2c8047679b737dcb0cd15c313ee51553aed617 Author: Christian Brabandt <cb@256bit.org> Date: Wed Nov 3 22:31:44 2021 +0000 patch 8.2.3579: CI sometimes fails for MinGW Problem: CI sometimes fails for MinGW. Solution: Use backslashes in HandleSwapExists(). (Christian Brabandt, closes #9078)
author Bram Moolenaar <Bram@vim.org>
date Wed, 03 Nov 2021 23:45:05 +0100
parents 00de6cb1c5a1
children 3284f1db4475
files src/testdir/runtest.vim src/version.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/runtest.vim
+++ b/src/testdir/runtest.vim
@@ -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')
--- a/src/version.c
+++ b/src/version.c
@@ -758,6 +758,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3579,
+/**/
     3578,
 /**/
     3577,