]> granicus.if.org Git - vim/commitdiff
patch 9.0.0851: terminal mouse test is still flaky v9.0.0851
authorBram Moolenaar <Bram@vim.org>
Thu, 10 Nov 2022 00:09:22 +0000 (00:09 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 10 Nov 2022 00:09:22 +0000 (00:09 +0000)
Problem:    Terminal mouse test is still flaky.
Solution:   Also use WaitForAssert().

src/testdir/test_terminal3.vim
src/version.c

index 59fba96792bde864fa522a12437def146ca7aa7c..f871187ef3a1d2969b3909ea758e98606920781d 100644 (file)
@@ -716,7 +716,7 @@ func Test_term_mouse()
   call TermWait(buf, 50)
   call term_sendkeys(buf, ":call writefile([@\"], 'Xbuf')\<CR>")
   call WaitFor(XbufExists)
-  call assert_equal('yellow', readfile('Xbuf')[0])
+  call WaitForAssert({-> assert_equal('yellow', readfile('Xbuf')[0])})
   call delete('Xbuf')
 
   " Test for selecting text using double click
index 3433ebce08653ef553eef373b56b599799c4e06a..cb95d2c2692cbf85894116a0eb2ec836a5b7819e 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    851,
 /**/
     850,
 /**/