]> granicus.if.org Git - vim/commitdiff
patch 8.1.0004: test for :compiler command sometimes fails v8.1.0004
authorBram Moolenaar <Bram@vim.org>
Sat, 19 May 2018 13:52:11 +0000 (15:52 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 19 May 2018 13:52:11 +0000 (15:52 +0200)
Problem:    Test for :compiler command sometimes fails.
Solution:   Be less strict about the error message. (Dominique Pelle)

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

index fd3510d60bee0d6f3dddc6481c3e54fbde43744e..902276d22f001c75502d5c30d01954c5b0bfb548 100644 (file)
@@ -19,9 +19,8 @@ func Test_compiler()
   w!
   call feedkeys(":make\<CR>\<CR>", 'tx')
   let a=execute('clist')
-  call assert_equal("\n 1 Xfoo.pl:3: Global symbol \"\$foo\" "
-  \ .               "requires explicit package name "
-  \ .               "(did you forget to declare \"my $foo\"?)", a)
+  call assert_match("\n 1 Xfoo.pl:3: Global symbol \"\$foo\" "
+  \ .               "requires explicit package name", a)
 
   call delete('Xfoo.pl')
   bw!
index 9ceabc7bfc9fe99aa873ad6688ff1a58adf4734c..32ddbf6aa077c33051c163acdc8f8feec1ea9564 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4,
 /**/
     3,
 /**/