0
0
mirror of https://github.com/vim/vim.git synced 2025-10-07 05:54:16 -04:00

patch 8.1.1651: suspend test is flaky on some systems

Problem:    Suspend test is flaky on some systems.
Solution:   Wait for the shell prompt to show. (Yee Cheng Chin, closes #4632)
This commit is contained in:
Bram Moolenaar
2019-07-08 20:58:25 +02:00
parent ee9e604124
commit 9992244226
2 changed files with 4 additions and 0 deletions

View File

@@ -54,6 +54,8 @@ func Test_suspend()
" Quit gracefully to dump coverage information. " Quit gracefully to dump coverage information.
call term_sendkeys(buf, ":qall!\<CR>") call term_sendkeys(buf, ":qall!\<CR>")
call term_wait(buf) call term_wait(buf)
" Wait until Vim actually exited and shell shows a prompt
call WaitForAssert({-> assert_match('[$#] $', term_getline(buf, '.'))})
call StopShellInTerminal(buf) call StopShellInTerminal(buf)
exe buf . 'bwipe!' exe buf . 'bwipe!'

View File

@@ -777,6 +777,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 */
/**/
1651,
/**/ /**/
1650, 1650,
/**/ /**/