]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.0.0500: quotestar test is still a bit flaky v8.0.0500
authorBram Moolenaar <Bram@vim.org>
Tue, 21 Mar 2017 17:02:41 +0000 (18:02 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 21 Mar 2017 17:02:41 +0000 (18:02 +0100)
Problem:    Quotestar test is still a bit flaky.
Solution:   Add a slower check for v:version.

src/testdir/test_quotestar.vim
src/version.c

index 5212b9bc62c71fefdf2ecf815f926c1c4511a3ce..d0dd04f91d8d5fc6827ef15d88b9eb5a00b1970d 100644 (file)
@@ -53,6 +53,10 @@ func Do_test_quotestar_for_x11()
   call WaitFor('serverlist() =~ "' . name . '"')
   call assert_match(name, serverlist())
 
+  " Wait for the server to be up and answering requests.  One second is not
+  " always sufficient.
+  call WaitFor('remote_expr("' . name . '", "v:version", "", 2) != ""')
+
   " Clear the *-register of this vim instance.
   let @* = ''
 
@@ -78,8 +82,8 @@ func Do_test_quotestar_for_x11()
     else
       call remote_send(name, ":gui -f\<CR>")
     endif
-    " Wait for the server to be up and answering requests.
-    call WaitFor('remote_expr("' . name . '", "v:version", "", 1) != ""')
+    " Wait for the server in the GUI to be up and answering requests.
+    call WaitFor('remote_expr("' . name . '", "has(\"gui_running\")", "", 1) =~ "1"')
 
     call remote_send(name, ":let @* = 'maybe'\<CR>")
     call WaitFor('remote_expr("' . name . '", "@*", "", 1) == "maybe"')
index 3b651ccaeae8a7aa7d90575df96a96b3bb36d093..c3a4779d774cc8b6f77f9db50f906285c396853d 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    500,
 /**/
     499,
 /**/