forked from aniani/vim
patch 8.2.3802: terminal in two windows test fails on some systems
Problem: Terminal in two windows test fails on some systems. Solution: Wait a bit between commands.
This commit is contained in:
@@ -1378,7 +1378,7 @@ func Test_terminal_popup_bufload()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_terminal_popup_two_windows()
|
func Test_terminal_popup_two_windows()
|
||||||
CheckScreendump
|
CheckRunVimInTerminal
|
||||||
CheckUnix
|
CheckUnix
|
||||||
|
|
||||||
" use "sh" instead of "&shell" in the hope it will use a short prompt
|
" use "sh" instead of "&shell" in the hope it will use a short prompt
|
||||||
@@ -1398,7 +1398,9 @@ func Test_terminal_popup_two_windows()
|
|||||||
call WaitForAssert({-> assert_match("echo 'test'", term_getline(buf, 1))})
|
call WaitForAssert({-> assert_match("echo 'test'", term_getline(buf, 1))})
|
||||||
call WaitForAssert({-> assert_match("echo 'test'", term_getline(buf, 3))})
|
call WaitForAssert({-> assert_match("echo 'test'", term_getline(buf, 3))})
|
||||||
|
|
||||||
call term_sendkeys(buf, "\<CR>exit\<CR>:q\<CR>")
|
call term_sendkeys(buf, "\<CR>\<CR>exit\<CR>")
|
||||||
|
call TermWait(buf)
|
||||||
|
call term_sendkeys(buf, ":q\<CR>")
|
||||||
call StopVimInTerminal(buf)
|
call StopVimInTerminal(buf)
|
||||||
call delete('XpopupScript')
|
call delete('XpopupScript')
|
||||||
endfunc
|
endfunc
|
||||||
|
|||||||
@@ -749,6 +749,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
3802,
|
||||||
/**/
|
/**/
|
||||||
3801,
|
3801,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user