]> granicus.if.org Git - vim/commitdiff
patch 8.1.0005: test for :compiler command fails on MS-Windows v8.1.0005
authorBram Moolenaar <Bram@vim.org>
Sat, 19 May 2018 14:45:15 +0000 (16:45 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 19 May 2018 14:45:15 +0000 (16:45 +0200)
Problem:    Test for :compiler command fails on MS-Windows.
Solution:   Ignore difference in path.

src/testdir/test_compiler.vim
src/version.c

index 902276d22f001c75502d5c30d01954c5b0bfb548..29d02b213d75234ccefc3d8c6c883316ff3f951f 100644 (file)
@@ -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()
index 32ddbf6aa077c33051c163acdc8f8feec1ea9564..a3eb91a618b341a0ffe2dba3f5b754b85bd5d580 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    5,
 /**/
     4,
 /**/