changeset 22904:a7c1a92bd13c v8.2.1999

patch 8.2.1999: terminal popup test sometimes fails Commit: https://github.com/vim/vim/commit/e6329e4c55cd81b6134820eab6a10b02c11c1277 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Nov 16 21:10:34 2020 +0100 patch 8.2.1999: terminal popup test sometimes fails Problem: Terminal popup test sometimes fails. Solution: Wait for the popup to close.
author Bram Moolenaar <Bram@vim.org>
date Mon, 16 Nov 2020 21:15:04 +0100
parents 83cc3b2e7bb6
children 3e3b02c8ca00
files src/testdir/test_terminal.vim src/version.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_terminal.vim
+++ b/src/testdir/test_terminal.vim
@@ -1249,8 +1249,8 @@ func Test_terminal_popup_bufload()
   " must not have switched to another window
   call assert_equal(winid, win_getid())
 
-  call feedkeys("exit\<CR>", 'xt')
-  sleep 50m
+  call StopShellInTerminal(termbuf)
+  call WaitFor({-> win_getid() != winid})
   exe 'bwipe! ' .. newbuf
 endfunc
 
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1999,
+/**/
     1998,
 /**/
     1997,