Skip to content

Commit

Permalink
patch 9.0.1004: suspend test sometimes fails on MacOS
Browse files Browse the repository at this point in the history
Problem:    Suspend test sometimes fails on MacOS.
Solution:   Wait a short while for terminal responses.
  • Loading branch information
brammool committed Dec 4, 2022
1 parent 3d3e2aa commit a0a6f3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/testdir/test_suspend.vim
Expand Up @@ -2,6 +2,7 @@

source check.vim
source term_util.vim
source shared.vim

func CheckSuspended(buf, fileExists)
call WaitForAssert({-> assert_match('[$#] $', term_getline(a:buf, '.'))})
Expand All @@ -21,6 +22,8 @@ func Test_suspend()
CheckFeature terminal
CheckExecutable /bin/sh

call WaitForResponses()

let buf = term_start('/bin/sh')
" Wait for shell prompt.
call WaitForAssert({-> assert_match('[$#] $', term_getline(buf, '.'))})
Expand Down Expand Up @@ -65,6 +68,8 @@ func Test_suspend_autocmd()
CheckFeature terminal
CheckExecutable /bin/sh

call WaitForResponses()

let buf = term_start('/bin/sh', #{term_rows: 6})
" Wait for shell prompt.
call WaitForAssert({-> assert_match('[$#] $', term_getline(buf, '.'))})
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -695,6 +695,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1004,
/**/
1003,
/**/
Expand Down

0 comments on commit a0a6f3a

Please sign in to comment.