diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-07-16 10:53:54 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2024-07-16 10:56:37 +0800 |
commit | 24bd7a4a9c2b13345c1f68f3604c1fd085eb9fa4 (patch) | |
tree | ad6efb407e1578a60c4bcc7b17920e8dca9feb68 | |
parent | 1bf9a7ce950c2e15d9d005aeebc33b0261798372 (diff) | |
download | rneovim-24bd7a4a9c2b13345c1f68f3604c1fd085eb9fa4.tar.gz rneovim-24bd7a4a9c2b13345c1f68f3604c1fd085eb9fa4.tar.bz2 rneovim-24bd7a4a9c2b13345c1f68f3604c1fd085eb9fa4.zip |
vim-patch:8.2.3579: CI sometimes fails for MinGW
Problem: CI sometimes fails for MinGW.
Solution: Use backslashes in HandleSwapExists(). (Christian Brabandt,
closes vim/vim#9078)
https://github.com/vim/vim/commit/4b2c8047679b737dcb0cd15c313ee51553aed617
Co-authored-by: Christian Brabandt <cb@256bit.org>
-rw-r--r-- | test/old/testdir/runtest.vim | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/old/testdir/runtest.vim b/test/old/testdir/runtest.vim index 53ad20dc6f..362964c5cb 100644 --- a/test/old/testdir/runtest.vim +++ b/test/old/testdir/runtest.vim @@ -95,7 +95,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') |