Mercurial > vim
changeset 17304:9048b6fb05ce v8.1.1651
patch 8.1.1651: suspend test is flaky on some systems
commit https://github.com/vim/vim/commit/999224422633935eaa8b804ce3d1c2f9ca195d0a
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jul 8 20:58:25 2019 +0200
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 https://github.com/vim/vim/issues/4632)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 08 Jul 2019 21:00:03 +0200 |
parents | 40f564b561b7 |
children | f60f78133fca |
files | src/testdir/test_suspend.vim src/version.c |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_suspend.vim +++ b/src/testdir/test_suspend.vim @@ -54,6 +54,8 @@ func Test_suspend() " Quit gracefully to dump coverage information. call term_sendkeys(buf, ":qall!\<CR>") call term_wait(buf) + " Wait until Vim actually exited and shell shows a prompt + call WaitForAssert({-> assert_match('[$#] $', term_getline(buf, '.'))}) call StopShellInTerminal(buf) exe buf . 'bwipe!'