]> granicus.if.org Git - vim/commitdiff
patch 8.1.1573: textprop test fails if screenhots do not work v8.1.1573
authorBram Moolenaar <Bram@vim.org>
Wed, 19 Jun 2019 16:16:10 +0000 (18:16 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 19 Jun 2019 16:16:10 +0000 (18:16 +0200)
Problem:    Textprop test fails if screenhots do not work.
Solution:   Add check for screenhots working.

src/testdir/test_textprop.vim
src/version.c

index 36eeb709b8af3f580659a0a61c08b824786980d1..df060ea846c787a64f4e4b1dac1993876afa4b64 100644 (file)
@@ -760,6 +760,10 @@ func Test_textprop_screenshot_visual()
 endfunc
 
 func Test_textprop_after_tab()
+  if !CanRunVimInTerminal()
+    throw 'Skipped: cannot make screendumps'
+  endif
+
   let lines =<< trim END
        call setline(1, [
              \ "\txxx",
index 62ef11367093199933d1afbf9edc7fe946ab25e5..9060ceb4e73c81da409ad76617bd989f103eae7c 100644 (file)
@@ -777,6 +777,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1573,
 /**/
     1572,
 /**/