aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-07-08 21:05:35 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-07-15 23:07:29 -0400
commit066ef812c27551aaf150777a9635a06262caeaeb (patch)
tree09bec4c8ebc48eb8e2ee923b4eb88190cb37ebe0
parent71018924fc80c1b29985398817caaf1ea12c6296 (diff)
downloadrneovim-066ef812c27551aaf150777a9635a06262caeaeb.tar.gz
rneovim-066ef812c27551aaf150777a9635a06262caeaeb.tar.bz2
rneovim-066ef812c27551aaf150777a9635a06262caeaeb.zip
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
-rw-r--r--src/nvim/testdir/test_suspend.vim2
1 files changed, 2 insertions, 0 deletions
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!\<CR>")
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!'