]> granicus.if.org Git - vim/commitdiff
patch 8.0.0632: the quotestar test is still a bit flaky v8.0.0632
authorBram Moolenaar <Bram@vim.org>
Sat, 10 Jun 2017 14:30:32 +0000 (16:30 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 10 Jun 2017 14:30:32 +0000 (16:30 +0200)
Problem:    The quotestar test is still a bit flaky.
Solution:   Kill any existing server to make the retry work.  Wait for the
            register to be filled.

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

index 37e3a10ed17eddd6186760a6380ff304a00f72bd..b053260be31fd8a9e78cc2cc95b1e828602fefcd 100644 (file)
@@ -50,6 +50,15 @@ func Do_test_quotestar_for_x11()
   endtry
 
   let name = 'XVIMCLIPBOARD'
+
+  " Make sure a previous server has exited
+  try
+    call remote_send(name, ":qa!\<CR>")
+    call WaitFor('serverlist() !~ "' . name . '"')
+  catch /E241:/
+  endtry
+  call assert_notmatch(name, serverlist())
+
   let cmd .= ' --servername ' . name
   let g:job = job_start(cmd, {'stoponexit': 'kill', 'out_io': 'null'})
   call WaitFor('job_status(g:job) == "run"')
@@ -76,6 +85,7 @@ func Do_test_quotestar_for_x11()
   call assert_equal('yes', remote_expr(name, "@*", "", 2))
 
   " Check that the *-register of this vim instance is changed as expected.
+  call WaitFor('@* == "yes"')
   call assert_equal('yes', @*)
 
   if has('unix') && has('gui') && !has('gui_running')
index 8f59546bea07368c3dabc43178ad2a6b3bba38b3..3c7c967a5d1aa88bc7e6c3547fc52eed0a70cc15 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    632,
 /**/
     631,
 /**/