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 -- b...@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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20230413163257.3A3991C0A7C%40moolenaar.net.

Raspunde prin e-mail lui