Skip to content

Commit a0a6f3a

Browse files
committed
patch 9.0.1004: suspend test sometimes fails on MacOS
Problem: Suspend test sometimes fails on MacOS. Solution: Wait a short while for terminal responses.
1 parent 3d3e2aa commit a0a6f3a

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/testdir/test_suspend.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
source check.vim
44
source term_util.vim
5+
source shared.vim
56

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

25+
call WaitForResponses()
26+
2427
let buf = term_start('/bin/sh')
2528
" Wait for shell prompt.
2629
call WaitForAssert({-> assert_match('[$#] $', term_getline(buf, '.'))})
@@ -65,6 +68,8 @@ func Test_suspend_autocmd()
6568
CheckFeature terminal
6669
CheckExecutable /bin/sh
6770

71+
call WaitForResponses()
72+
6873
let buf = term_start('/bin/sh', #{term_rows: 6})
6974
" Wait for shell prompt.
7075
call WaitForAssert({-> assert_match('[$#] $', term_getline(buf, '.'))})

src/version.c

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

696696
static int included_patches[] =
697697
{ /* Add new patch number below this line */
698+
/**/
699+
1004,
698700
/**/
699701
1003,
700702
/**/

0 commit comments

Comments
 (0)