From: Bram Moolenaar Date: Thu, 13 Apr 2023 16:32:23 +0000 (+0100) Subject: patch 9.0.1449: test for prompt buffer is flaky X-Git-Tag: v9.0.1449 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff6c230051ed2a2dbbbd517f51fe00c8ea27961b;p=thirdparty%2Fvim.git patch 9.0.1449: test for prompt buffer is flaky Problem: Test for prompt buffer is flaky. Solution: Use WaitForAssert() instead of TermWait(). (Ozaki Kiichi, closes #12247) --- diff --git a/src/testdir/test_prompt_buffer.vim b/src/testdir/test_prompt_buffer.vim index b81309c71e..d173731607 100644 --- a/src/testdir/test_prompt_buffer.vim +++ b/src/testdir/test_prompt_buffer.vim @@ -282,20 +282,16 @@ func Test_prompt_appending_while_hidden() call TermWait(buf) call term_sendkeys(buf, "exit\") - call TermWait(buf) - call assert_notmatch('-- INSERT --', term_getline(buf, 10)) + call WaitForAssert({-> assert_notmatch('-- INSERT --', term_getline(buf, 10))}) call term_sendkeys(buf, ":call DoAppend()\") - call TermWait(buf) - call assert_notmatch('-- INSERT --', term_getline(buf, 10)) + call WaitForAssert({-> assert_notmatch('-- INSERT --', term_getline(buf, 10))}) call term_sendkeys(buf, "i") - call TermWait(buf) - call assert_match('-- INSERT --', term_getline(buf, 10)) + call WaitForAssert({-> assert_match('-- INSERT --', term_getline(buf, 10))}) call term_sendkeys(buf, "\=DoAppend()\") - call TermWait(buf) - call assert_match('-- INSERT --', term_getline(buf, 10)) + call WaitForAssert({-> assert_match('-- INSERT --', term_getline(buf, 10))}) call term_sendkeys(buf, "\") call StopVimInTerminal(buf) diff --git a/src/version.c b/src/version.c index ba8b40e15e..23b39e7b1f 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1449, /**/ 1448, /**/