To: vim_dev@googlegroups.com Subject: Patch 9.0.1449 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.1449 Problem: Test for prompt buffer is flaky. Solution: Use WaitForAssert() instead of TermWait(). (Ozaki Kiichi, closes #12247) Files: src/testdir/test_prompt_buffer.vim *** ../vim-9.0.1448/src/testdir/test_prompt_buffer.vim 2023-04-09 22:01:21.143306278 +0100 --- src/testdir/test_prompt_buffer.vim 2023-04-13 17:31:36.929710155 +0100 *************** *** 282,301 **** call TermWait(buf) call term_sendkeys(buf, "exit\") ! call TermWait(buf) ! call 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 term_sendkeys(buf, "i") ! call TermWait(buf) ! call assert_match('-- INSERT --', term_getline(buf, 10)) call term_sendkeys(buf, "\=DoAppend()\") ! call TermWait(buf) ! call assert_match('-- INSERT --', term_getline(buf, 10)) call term_sendkeys(buf, "\") call StopVimInTerminal(buf) --- 282,297 ---- call TermWait(buf) call term_sendkeys(buf, "exit\") ! call WaitForAssert({-> assert_notmatch('-- INSERT --', term_getline(buf, 10))}) call term_sendkeys(buf, ":call DoAppend()\") ! call WaitForAssert({-> assert_notmatch('-- INSERT --', term_getline(buf, 10))}) call term_sendkeys(buf, "i") ! call WaitForAssert({-> assert_match('-- INSERT --', term_getline(buf, 10))}) call term_sendkeys(buf, "\=DoAppend()\") ! call WaitForAssert({-> assert_match('-- INSERT --', term_getline(buf, 10))}) call term_sendkeys(buf, "\") call StopVimInTerminal(buf) *** ../vim-9.0.1448/src/version.c 2023-04-13 17:23:41.088296795 +0100 --- src/version.c 2023-04-13 17:31:27.773743991 +0100 *************** *** 697,698 **** --- 697,700 ---- { /* Add new patch number below this line */ + /**/ + 1449, /**/ -- Compilation process failed successfully. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///