0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.1.2014: terminal altscreen test fails sometimes

Problem:    Terminal altscreen test fails sometimes.
Solution:   Use WaitFor().
This commit is contained in:
Bram Moolenaar 2019-09-08 22:09:52 +02:00
parent f92e58cadb
commit b9c79cf5cc
2 changed files with 5 additions and 4 deletions

View 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!"

View File

@ -757,6 +757,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2014,
/**/
2013,
/**/