Patch 9.0.1449

5 views
Skip to first unread message

Bram Moolenaar

unread,
Apr 13, 2023, 12:33:01 PM4/13/23
to vim...@googlegroups.com

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\<CR>")
! call TermWait(buf)
! call 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 term_sendkeys(buf, "i")
! call TermWait(buf)
! call 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 term_sendkeys(buf, "\<Esc>")
call StopVimInTerminal(buf)
--- 282,297 ----
call TermWait(buf)

call term_sendkeys(buf, "exit\<CR>")
! call WaitForAssert({-> assert_notmatch('-- INSERT --', term_getline(buf, 10))})

call term_sendkeys(buf, ":call DoAppend()\<CR>")
! 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, "\<C-R>=DoAppend()\<CR>")
! call WaitForAssert({-> assert_match('-- INSERT --', term_getline(buf, 10))})

call term_sendkeys(buf, "\<Esc>")
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 -- Br...@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 ///
Reply all
Reply to author
Forward
0 new messages