Skip to content

Commit 9992244

Browse files
committed
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)
1 parent ee9e604 commit 9992244

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/testdir/test_suspend.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ func Test_suspend()
5454
" Quit gracefully to dump coverage information.
5555
call term_sendkeys(buf, ":qall!\<CR>")
5656
call term_wait(buf)
57+
" Wait until Vim actually exited and shell shows a prompt
58+
call WaitForAssert({-> assert_match('[$#] $', term_getline(buf, '.'))})
5759
call StopShellInTerminal(buf)
5860

5961
exe buf . 'bwipe!'

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,8 @@ static char *(features[]) =
777777

778778
static int included_patches[] =
779779
{ /* Add new patch number below this line */
780+
/**/
781+
1651,
780782
/**/
781783
1650,
782784
/**/

0 commit comments

Comments
 (0)