changeset 32236:869aa24e12cb v9.0.1449

patch 9.0.1449: test for prompt buffer is flaky Commit: https://github.com/vim/vim/commit/ff6c230051ed2a2dbbbd517f51fe00c8ea27961b Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 13 17:32:23 2023 +0100 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)
author Bram Moolenaar <Bram@vim.org>
date Thu, 13 Apr 2023 18:45:03 +0200
parents 2161817507ff
children c9b337889ea8
files src/testdir/test_prompt_buffer.vim src/version.c
diffstat 2 files changed, 6 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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\<CR>")
-  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()\<CR>")
-  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, "\<C-R>=DoAppend()\<CR>")
-  call TermWait(buf)
-  call assert_match('-- INSERT --', term_getline(buf, 10))
+  call WaitForAssert({-> assert_match('-- INSERT --', term_getline(buf, 10))})
 
   call term_sendkeys(buf, "\<Esc>")
   call StopVimInTerminal(buf)
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1449,
+/**/
     1448,
 /**/
     1447,