Patch 8.2.0923
Problem:    Cmdline test is slow.
Solution:   Use WaitForAssert().
Files:      src/testdir/test_cmdline.vim


*** ../vim-8.2.0922/src/testdir/test_cmdline.vim        2020-06-07 
17:03:15.189741376 +0200
--- src/testdir/test_cmdline.vim        2020-06-07 17:16:56.935304100 +0200
***************
*** 3,8 ****
--- 3,9 ----
  source check.vim
  source screendump.vim
  source view_util.vim
+ source shared.vim
  
  func Test_complete_tab()
    call writefile(['testfile'], 'Xtestfile')
***************
*** 1194,1206 ****
    call writefile(lines, 'XTest_cmdwin')
  
    let buf = RunVimInTerminal('-S XTest_cmdwin', {'rows': 18})
-   call TermWait(buf, 1000)
    " open cmdwin
    call term_sendkeys(buf, "q:")
!   call TermWait(buf, 500)
    " quit more prompt for :smile command
    call term_sendkeys(buf, "q")
!   call TermWait(buf, 500)
    " execute a simple command
    call term_sendkeys(buf, "aecho 'done'\<CR>")
    call VerifyScreenDump(buf, 'Test_cmdwin_interrupted', {})
--- 1195,1206 ----
    call writefile(lines, 'XTest_cmdwin')
  
    let buf = RunVimInTerminal('-S XTest_cmdwin', {'rows': 18})
    " open cmdwin
    call term_sendkeys(buf, "q:")
!   call WaitForAssert({-> assert_match('-- More --', term_getline(buf, 18))})
    " quit more prompt for :smile command
    call term_sendkeys(buf, "q")
!   call WaitForAssert({-> assert_match('^$', term_getline(buf, 18))})
    " execute a simple command
    call term_sendkeys(buf, "aecho 'done'\<CR>")
    call VerifyScreenDump(buf, 'Test_cmdwin_interrupted', {})
*** ../vim-8.2.0922/src/version.c       2020-06-07 17:19:57.822773778 +0200
--- src/version.c       2020-06-07 17:29:03.921112846 +0200
***************
*** 756,757 ****
--- 756,759 ----
  {   /* Add new patch number below this line */
+ /**/
+     923,
  /**/

-- 
"Intelligence has much less practical application than you'd think."
                  -- Scott Adams, Dilbert.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202006071530.057FUpaO070905%40masaka.moolenaar.net.

Raspunde prin e-mail lui