Patch 8.1.2014
Problem:    Terminal altscreen test fails sometimes.
Solution:   Use WaitFor().
Files:      src/testdir/test_terminal.vim


*** ../vim-8.1.2013/src/testdir/test_terminal.vim       2019-09-08 
20:55:03.146072987 +0200
--- src/testdir/test_terminal.vim       2019-09-08 22:08:23.213641666 +0200
***************
*** 2093,2103 ****
    let buf = term_start(&shell, {})
  
    call term_sendkeys(buf, 'echo "\e[?1047h"' .. "\r")
!   call term_wait(buf)
!   call assert_equal(1, term_getaltscreen(buf))
    call term_sendkeys(buf, 'echo "\e[?1047l"' .. "\r")
!   call term_wait(buf)
!   call assert_equal(0, buf->term_getaltscreen())
  
    call term_sendkeys(buf, "exit\r")
    exe buf . "bwipe!"
--- 2093,2102 ----
    let buf = term_start(&shell, {})
  
    call term_sendkeys(buf, 'echo "\e[?1047h"' .. "\r")
!   call WaitForAssert({-> assert_equal(1, term_getaltscreen(buf))})
! 
    call term_sendkeys(buf, 'echo "\e[?1047l"' .. "\r")
!   call WaitForAssert({-> assert_equal(0, term_getaltscreen(buf))})
  
    call term_sendkeys(buf, "exit\r")
    exe buf . "bwipe!"
*** ../vim-8.1.2013/src/version.c       2019-09-08 21:51:36.453843927 +0200
--- src/version.c       2019-09-08 22:09:15.549441067 +0200
***************
*** 759,760 ****
--- 759,762 ----
  {   /* Add new patch number below this line */
+ /**/
+     2014,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
223. You set up a web-cam as your home's security system.

 /// 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/201909082010.x88KALX0012169%40masaka.moolenaar.net.

Raspunde prin e-mail lui