Mercurial > vim
changeset 31341:3071d91e52f0 v9.0.1004
patch 9.0.1004: suspend test sometimes fails on MacOS
Commit: https://github.com/vim/vim/commit/a0a6f3a22a934fa68b71d82c23e2f6bf6e5b18d0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Dec 4 22:26:40 2022 +0000
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 04 Dec 2022 23:30:03 +0100 |
parents | 09fcef41da88 |
children | 60cf6899a082 |
files | src/testdir/test_suspend.vim src/version.c |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_suspend.vim +++ b/src/testdir/test_suspend.vim @@ -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, '.'))}) @@ -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, '.'))}) @@ -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, '.'))})