changeset 18037:6a7b778119f1 v8.1.2014

patch 8.1.2014: terminal altscreen test fails sometimes Commit: https://github.com/vim/vim/commit/b9c79cf5cc876ba4d46d938ad4a15800dbe45e64 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 8 22:09:52 2019 +0200 patch 8.1.2014: terminal altscreen test fails sometimes Problem: Terminal altscreen test fails sometimes. Solution: Use WaitFor().
author Bram Moolenaar <Bram@vim.org>
date Sun, 08 Sep 2019 22:15:04 +0200
parents 8b9e77aa11c2
children 474da17e65dd
files src/testdir/test_terminal.vim src/version.c
diffstat 2 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_terminal.vim
+++ b/src/testdir/test_terminal.vim
@@ -2093,11 +2093,10 @@ func Test_terminal_altscreen()
   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 WaitForAssert({-> 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 WaitForAssert({-> assert_equal(0, term_getaltscreen(buf))})
 
   call term_sendkeys(buf, "exit\r")
   exe buf . "bwipe!"
--- a/src/version.c
+++ b/src/version.c
@@ -758,6 +758,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2014,
+/**/
     2013,
 /**/
     2012,