From: Bram Moolenaar Date: Sat, 28 Mar 2020 20:48:55 +0000 (+0100) Subject: patch 8.2.0470: Test_confirm_cmd_cancel() can fail on a slow system X-Git-Tag: v8.2.0470 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7b1b36b1cb744e87adfbef88b7ce26c863b0594a;p=thirdparty%2Fvim.git 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 #5861) --- diff --git a/src/testdir/test_excmd.vim b/src/testdir/test_excmd.vim index d5588d670a..2d4d520532 100644 --- 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 index 8bf06a13c7..954a751d58 100644 --- a/src/version.c +++ b/src/version.c @@ -738,6 +738,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 470, /**/ 469, /**/