]> granicus.if.org Git - vim/commitdiff
patch 8.0.1095: terminal multibyte escrape test is flaky v8.0.1095
authorBram Moolenaar <Bram@vim.org>
Mon, 11 Sep 2017 18:45:23 +0000 (20:45 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 11 Sep 2017 18:45:23 +0000 (20:45 +0200)
Problem:    Terminal multibyte escrape test is flaky.
Solution:   Add another condition to wait for.

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

index b4268f57b2092768defc7798e5d336593222d252..4596d9130c439bd9718798f69eaf5a213deb05fb 100644 (file)
@@ -197,7 +197,7 @@ func Test_terminal_scrape_multibyte()
     let g:line = 1
   endif
 
-  call WaitFor('term_scrape(g:buf, g:line)[0].chars == "l"')
+  call WaitFor('len(term_scrape(g:buf, g:line)) >= 7 && term_scrape(g:buf, g:line)[0].chars == "l"')
   let l = term_scrape(g:buf, g:line)
   call assert_true(len(l) >= 7)
   call assert_equal('l', l[0].chars)
index 013038816e22398b3abd831030f1fdc130dc19ca..c970b57d8451876315bbc9dcfadf060669924f08 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1095,
 /**/
     1094,
 /**/