# HG changeset patch # User Bram Moolenaar # Date 1567973704 -7200 # Node ID 6a7b778119f1bf25bc82333e56b3868f8a0959f7 # Parent 8b9e77aa11c2fea1dcec310cd6a9be6ad20f0da3 patch 8.1.2014: terminal altscreen test fails sometimes Commit: https://github.com/vim/vim/commit/b9c79cf5cc876ba4d46d938ad4a15800dbe45e64 Author: Bram Moolenaar 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(). diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim --- 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!" diff --git a/src/version.c b/src/version.c --- 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,