]> granicus.if.org Git - vim/commitdiff
patch 8.0.1057: terminal scrape test waits too long v8.0.1057
authorBram Moolenaar <Bram@vim.org>
Tue, 5 Sep 2017 18:19:42 +0000 (20:19 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 5 Sep 2017 18:19:42 +0000 (20:19 +0200)
Problem:    Terminal scrape test waits too long, it checks for one instead of
            three.
Solution:   Check there are three characters. (micbou)

src/testdir/test_terminal.vim
src/version.c

index c7ff89ee67ee4a96e93f3797938e4da2506617cc..2ee25bf7c7cb70514f0c94784512a5d286c97c31 100644 (file)
@@ -166,8 +166,8 @@ func Test_terminal_scrape_123()
   call term_wait(buf)
   let g:buf = buf
   " On MS-Windows we first get a startup message of two lines, wait for the
-  " "cls" to happen, after that we have one line.
-  call WaitFor('len(term_scrape(g:buf, 1)) == 1')
+  " "cls" to happen, after that we have one line with three characters.
+  call WaitFor('len(term_scrape(g:buf, 1)) == 3')
   call Check_123(buf)
 
   " Must still work after the job ended.
index 652704c1b7696bdffe4f640f0f9a7fa433dc7664..8fa740d7849c46bb9b3cce0382cfe76178ae9e45 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1057,
 /**/
     1056,
 /**/