]> granicus.if.org Git - vim/commitdiff
patch 8.1.2014: terminal altscreen test fails sometimes v8.1.2014
authorBram Moolenaar <Bram@vim.org>
Sun, 8 Sep 2019 20:09:52 +0000 (22:09 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 8 Sep 2019 20:09:52 +0000 (22:09 +0200)
Problem:    Terminal altscreen test fails sometimes.
Solution:   Use WaitFor().

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

index 48efd36f16d5cce704a2265e28f182547f0f693f..82459f85db8c7b802bea8329130442327c1205f8 100644 (file)
@@ -2093,11 +2093,10 @@ func Test_terminal_altscreen()
   let buf = term_start(&shell, {})
 
   call term_sendkeys(buf, 'echo "\e[?1047h"' .. "\r")
-  call term_wait(buf)
-  call assert_equal(1, term_getaltscreen(buf))
+  call WaitForAssert({-> assert_equal(1, term_getaltscreen(buf))})
+
   call term_sendkeys(buf, 'echo "\e[?1047l"' .. "\r")
-  call term_wait(buf)
-  call assert_equal(0, buf->term_getaltscreen())
+  call WaitForAssert({-> assert_equal(0, term_getaltscreen(buf))})
 
   call term_sendkeys(buf, "exit\r")
   exe buf . "bwipe!"
index d86f9f56d501d89dab367dfa221349852875e62f..448407fdf4646efb7bd6b9f6e73fea3c841a3ea8 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2014,
 /**/
     2013,
 /**/