Mercurial > vim
changeset 26546:d9aac1eaf9a3 v8.2.3802
patch 8.2.3802: terminal in two windows test fails on some systems
Commit: https://github.com/vim/vim/commit/0407d270342d363c6297a7556cd904b4c434df54
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Dec 13 22:17:44 2021 +0000
patch 8.2.3802: terminal in two windows test fails on some systems
Problem: Terminal in two windows test fails on some systems.
Solution: Wait a bit between commands.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 13 Dec 2021 23:30:04 +0100 |
parents | 6c154aa39bf3 |
children | e4dab977c8ad |
files | src/testdir/test_terminal.vim src/version.c |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -1378,7 +1378,7 @@ func Test_terminal_popup_bufload() endfunc func Test_terminal_popup_two_windows() - CheckScreendump + CheckRunVimInTerminal CheckUnix " use "sh" instead of "&shell" in the hope it will use a short prompt @@ -1398,7 +1398,9 @@ func Test_terminal_popup_two_windows() call WaitForAssert({-> assert_match("echo 'test'", term_getline(buf, 1))}) call WaitForAssert({-> assert_match("echo 'test'", term_getline(buf, 3))}) - call term_sendkeys(buf, "\<CR>exit\<CR>:q\<CR>") + call term_sendkeys(buf, "\<CR>\<CR>exit\<CR>") + call TermWait(buf) + call term_sendkeys(buf, ":q\<CR>") call StopVimInTerminal(buf) call delete('XpopupScript') endfunc