diff src/testdir/test_compiler.vim @ 18273:fc68850c5233 v8.1.2131

patch 8.1.2131: MSVC tests fail Commit: https://github.com/vim/vim/commit/c25e702deec74771e49f6c2df4cda7a1f97d0c1e Author: Bram Moolenaar <Bram@vim.org> Date: Thu Oct 10 14:08:26 2019 +0200 patch 8.1.2131: MSVC tests fail Problem: MSVC tests fail. Solution: Replace backslashes with slashes.
author Bram Moolenaar <Bram@vim.org>
date Thu, 10 Oct 2019 14:15:04 +0200
parents 57b18521216f
children 068337e86133
line wrap: on
line diff
--- a/src/testdir/test_compiler.vim
+++ b/src/testdir/test_compiler.vim
@@ -38,10 +38,11 @@ func Test_compiler()
 endfunc
 
 func Test_compiler_without_arg()
-  let a=split(execute('compiler'))
-  call assert_match($VIMRUNTIME .. '/compiler/ant.vim$',   a[0])
-  call assert_match($VIMRUNTIME .. '/compiler/bcc.vim$',   a[1])
-  call assert_match($VIMRUNTIME .. '/compiler/xmlwf.vim$', a[-1])
+  let runtime = substitute($VIMRUNTIME, '\\', '/', 'g')
+  let a = split(execute('compiler'))
+  call assert_match(runtime .. '/compiler/ant.vim$',   a[0])
+  call assert_match(runtime .. '/compiler/bcc.vim$',   a[1])
+  call assert_match(runtime .. '/compiler/xmlwf.vim$', a[-1])
 endfunc
 
 func Test_compiler_completion()