diff src/testdir/test_compiler.vim @ 13974:13cdf007cd2c v8.1.0005

patch 8.1.0005: test for :compiler command fails on MS-Windows commit https://github.com/vim/vim/commit/d19b234154476401a6ad8e690f9705419095f44e Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 19 16:45:15 2018 +0200 patch 8.1.0005: test for :compiler command fails on MS-Windows Problem: Test for :compiler command fails on MS-Windows. Solution: Ignore difference in path.
author Christian Brabandt <cb@256bit.org>
date Sat, 19 May 2018 17:00:06 +0200
parents 255967236075
children 9ff35e144467
line wrap: on
line diff
--- a/src/testdir/test_compiler.vim
+++ b/src/testdir/test_compiler.vim
@@ -28,9 +28,9 @@ endfunc
 
 func Test_compiler_without_arg()
   let a=split(execute('compiler'))
-  call assert_equal($VIMRUNTIME . '/compiler/ant.vim',   a[0])
-  call assert_equal($VIMRUNTIME . '/compiler/bcc.vim',   a[1])
-  call assert_equal($VIMRUNTIME . '/compiler/xmlwf.vim', a[-1])
+  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()