changeset 15916:95648dc0124f v8.1.0964

patch 8.1.0964: cannot see in CI why a screenshot test failed commit https://github.com/vim/vim/commit/353aca1215fad9c5413150a80df95ee3abb7e76a Author: Bram Moolenaar <Bram@vim.org> Date: Thu Feb 21 17:05:59 2019 +0100 patch 8.1.0964: cannot see in CI why a screenshot test failed Problem: Cannot see in CI why a screenshot test failed. Solution: Add info about the failure.
author Bram Moolenaar <Bram@vim.org>
date Thu, 21 Feb 2019 17:15:19 +0100
parents c8b5e2fd2f10
children ef8df97d2b3c
files src/testdir/screendump.vim src/version.c
diffstat 2 files changed, 16 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/screendump.vim
+++ b/src/testdir/screendump.vim
@@ -111,7 +111,9 @@ func VerifyScreenDump(buf, filename, opt
     sleep 10m
     call delete(testfile)
     call term_dumpwrite(a:buf, testfile, a:options)
-    if readfile(reference) == readfile(testfile)
+    let testdump = readfile(testfile)
+    let refdump = readfile(reference)
+    if refdump == testdump
       call delete(testfile)
       break
     endif
@@ -121,6 +123,17 @@ func VerifyScreenDump(buf, filename, opt
       if a:0 == 1
         let msg = a:1 . ': ' . msg
       endif
+      if len(testdump) != len(refdump)
+	let msg = msg . '; line count is ' . len(testdump) . ' instead of ' . len(refdump)
+      endif
+      for i in range(len(refdump))
+	if i >= len(testdump)
+	  break
+	endif
+	if testdump[i] != refdump[i]
+	  let msg = msg . '; difference in line ' . (i + 1) . ': "' . testdump[i] . '"'
+	endif
+      endfor
       call assert_report(msg)
       return 1
     endif
--- a/src/version.c
+++ b/src/version.c
@@ -780,6 +780,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    964,
+/**/
     963,
 /**/
     962,