forked from aniani/vim
patch 8.0.0632: the quotestar test is still a bit flaky
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.
This commit is contained in:
@@ -50,6 +50,15 @@ func Do_test_quotestar_for_x11()
|
|||||||
endtry
|
endtry
|
||||||
|
|
||||||
let name = 'XVIMCLIPBOARD'
|
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 cmd .= ' --servername ' . name
|
||||||
let g:job = job_start(cmd, {'stoponexit': 'kill', 'out_io': 'null'})
|
let g:job = job_start(cmd, {'stoponexit': 'kill', 'out_io': 'null'})
|
||||||
call WaitFor('job_status(g:job) == "run"')
|
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))
|
call assert_equal('yes', remote_expr(name, "@*", "", 2))
|
||||||
|
|
||||||
" Check that the *-register of this vim instance is changed as expected.
|
" Check that the *-register of this vim instance is changed as expected.
|
||||||
|
call WaitFor('@* == "yes"')
|
||||||
call assert_equal('yes', @*)
|
call assert_equal('yes', @*)
|
||||||
|
|
||||||
if has('unix') && has('gui') && !has('gui_running')
|
if has('unix') && has('gui') && !has('gui_running')
|
||||||
|
@@ -764,6 +764,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
632,
|
||||||
/**/
|
/**/
|
||||||
631,
|
631,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user