# HG changeset patch # User Bram Moolenaar # Date 1585429204 -3600 # Node ID 2dc8d3e6993edc647895548fd79c91dd900c9036 # Parent 478239d7c5aeb8e3b422de68882d9047b6242728 patch 8.2.0470: Test_confirm_cmd_cancel() can fail on a slow system Commit: https://github.com/vim/vim/commit/7b1b36b1cb744e87adfbef88b7ce26c863b0594a Author: Bram Moolenaar Date: Sat Mar 28 21:48:55 2020 +0100 patch 8.2.0470: Test_confirm_cmd_cancel() can fail on a slow system Problem: Test_confirm_cmd_cancel() can fail on a slow system. Solution: Use WaitForAssert(). (Ozaki Kiichi, closes https://github.com/vim/vim/issues/5861) diff --git a/src/testdir/test_excmd.vim b/src/testdir/test_excmd.vim --- a/src/testdir/test_excmd.vim +++ b/src/testdir/test_excmd.vim @@ -259,7 +259,7 @@ func Test_confirm_cmd_cancel() call WaitForAssert({-> assert_match('^\[Y\]es, (N)o, (C)ancel: *$', \ term_getline(buf, 20))}, 1000) call term_sendkeys(buf, "C") - call term_wait(buf, 50) + call WaitForAssert({-> assert_equal('', term_getline(buf, 20))}, 1000) call term_sendkeys(buf, ":confirm close\n") call WaitForAssert({-> assert_match('^\[Y\]es, (N)o, (C)ancel: *$', \ term_getline(buf, 20))}, 1000) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -739,6 +739,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 470, +/**/ 469, /**/ 468,