Mercurial > vim
comparison src/testdir/test_suspend.vim @ 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 | 7927cf327396 |
children | 131f1d8c5860 |
comparison
equal
deleted
inserted
replaced
17303:40f564b561b7 | 17304:9048b6fb05ce |
---|---|
52 call CheckSuspended(buf, 1) | 52 call CheckSuspended(buf, 1) |
53 | 53 |
54 " Quit gracefully to dump coverage information. | 54 " Quit gracefully to dump coverage information. |
55 call term_sendkeys(buf, ":qall!\<CR>") | 55 call term_sendkeys(buf, ":qall!\<CR>") |
56 call term_wait(buf) | 56 call term_wait(buf) |
57 " Wait until Vim actually exited and shell shows a prompt | |
58 call WaitForAssert({-> assert_match('[$#] $', term_getline(buf, '.'))}) | |
57 call StopShellInTerminal(buf) | 59 call StopShellInTerminal(buf) |
58 | 60 |
59 exe buf . 'bwipe!' | 61 exe buf . 'bwipe!' |
60 call delete('Xfoo') | 62 call delete('Xfoo') |
61 endfunc | 63 endfunc |