]> granicus.if.org Git - vim/commitdiff
patch 8.2.2647: terminal test sometimes hangs v8.2.2647
authorBram Moolenaar <Bram@vim.org>
Tue, 23 Mar 2021 15:25:09 +0000 (16:25 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 23 Mar 2021 15:25:09 +0000 (16:25 +0100)
Problem:    Terminal test sometimes hangs.
Solution:   Wait for the shell to display a prompt.

src/testdir/test_terminal.vim
src/version.c

index 3def03d7b23177b5dca73da2db13c3a5211dc8a7..a82ad8c52badf40b3e8de4b07d08eb0e2aff871e 100644 (file)
@@ -889,6 +889,8 @@ endfunc
 
 func TerminalTmap(remap)
   let buf = Run_shell_in_terminal({})
+  " Wait for the shell to display a prompt
+  call WaitForAssert({-> assert_notequal('', term_getline(buf, 1))})
   call assert_equal('t', mode())
 
   if a:remap
index b8b5d58a9a74eacc1e7f7b9731da67a61f29fea1..750db2ef6e837a07785aa07c8bbffa080121d19f 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2647,
 /**/
     2646,
 /**/