]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1652: unclear why syntax test fails on Mac v9.0.1652
authorBram Moolenaar <Bram@vim.org>
Fri, 23 Jun 2023 20:36:31 +0000 (21:36 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 23 Jun 2023 20:36:31 +0000 (21:36 +0100)
Problem:    Unclear why syntax test fails on Mac.
Solution:   Echo v:errors when it's not empty.

runtime/syntax/testdir/runtest.vim
src/version.c

index 27b766474d940ff74e2e8e2e8e4b9d8be82d0e8f..5878b5ec366081ad4ac4ab37b8be806ba3e0f4d5 100644 (file)
@@ -145,9 +145,16 @@ for fname in glob('input/*.*', 1, 1)
     call StopVimInTerminal(buf)
     call delete('Xtestscript')
 
-    " Add any assert errors to s:messages
+    " redraw here to avoid the following messages to get mixed up with screen
+    " output.
+    redraw
+
+    " Add any assert errors to s:messages.
     if len(v:errors) > 0
       call extend(s:messages, v:errors)
+      " Echo the errors here, in case the script aborts or the "messages" file
+      " is not displayed later.
+      echomsg v:errors
       let v:errors = []
       let fail += 1
     endif
index 6eef082b0ce7d98bb0cffd3d5063270e292842da..33169790e76fc138dbfdebf10bd57eb2c145fb04 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1652,
 /**/
     1651,
 /**/