# HG changeset patch # User Bram Moolenaar # Date 1616513404 -3600 # Node ID 6ddfe0f45b4c6d74f04f06424dd59af058055823 # Parent f02661b525dbb8e823220d7c72fc6ff3752885f0 patch 8.2.2647: terminal test sometimes hangs Commit: https://github.com/vim/vim/commit/f4a2ed071447ad4984fad55b9d1671b55140ae1c Author: Bram Moolenaar Date: Tue Mar 23 16:25:09 2021 +0100 patch 8.2.2647: terminal test sometimes hangs Problem: Terminal test sometimes hangs. Solution: Wait for the shell to display a prompt. diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim --- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -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 diff --git a/src/version.c b/src/version.c --- 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 */ /**/ + 2647, +/**/ 2646, /**/ 2645,