From 066ef812c27551aaf150777a9635a06262caeaeb Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Mon, 8 Jul 2019 21:05:35 -0400 Subject: vim-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 vim/vim#4632) https://github.com/vim/vim/commit/999224422633935eaa8b804ce3d1c2f9ca195d0a --- src/nvim/testdir/test_suspend.vim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/nvim/testdir/test_suspend.vim b/src/nvim/testdir/test_suspend.vim index efda68de9b..ef5a96bd72 100644 --- a/src/nvim/testdir/test_suspend.vim +++ b/src/nvim/testdir/test_suspend.vim @@ -53,6 +53,8 @@ func Test_suspend() " Quit gracefully to dump coverage information. call term_sendkeys(buf, ":qall!\") call term_wait(buf) + " Wait until Vim actually exited and shell shows a prompt + call WaitForAssert({-> assert_match('[$#] $', term_getline(buf, '.'))}) call Stop_shell_in_terminal(buf) exe buf . 'bwipe!' -- cgit