]> granicus.if.org Git - vim/commitdiff
patch 8.2.3811: the opfunc error test fails on a slow machine v8.2.3811
authorBram Moolenaar <Bram@vim.org>
Tue, 14 Dec 2021 20:26:53 +0000 (20:26 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 14 Dec 2021 20:26:53 +0000 (20:26 +0000)
Problem:    The opfunc error test fails on a slow machine.
Solution:   Use WaitForAssert().

src/testdir/test_vim9_func.vim
src/version.c

index f4a42cec259634dc1da55743ad10efbaa33a6553..9dc0d738ded7f11d5a32483e55b0a0c109037633 100644 (file)
@@ -3231,6 +3231,7 @@ def Run_Test_opfunc_error()
   call writefile(lines, 'XTest_opfunc_error')
 
   var buf = RunVimInTerminal('-S XTest_opfunc_error', {rows: 6, wait_for_ruler: 0})
+  WaitForAssert(() => assert_match('Press ENTER', term_getline(buf, 6)))
   VerifyScreenDump(buf, 'Test_opfunc_error', {})
 
   # clean up
index 6ce7173ea3943c4040bbc21acc31f5065645baeb..581fcd7ff4083d1962bc5392a9961a19deb8ff8b 100644 (file)
@@ -749,6 +749,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3811,
 /**/
     3810,
 /**/