mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
vim-patch:8.0.0500: quotestar test is still a bit flaky
Problem: Quotestar test is still a bit flaky.
Solution: Add a slower check for v:version.
4889ad7c6c
This commit is contained in:
@@ -53,6 +53,10 @@ func Do_test_quotestar_for_x11()
|
|||||||
call WaitFor('serverlist() =~ "' . name . '"')
|
call WaitFor('serverlist() =~ "' . name . '"')
|
||||||
call assert_match(name, serverlist())
|
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.
|
" Clear the *-register of this vim instance.
|
||||||
let @* = ''
|
let @* = ''
|
||||||
|
|
||||||
@@ -78,8 +82,8 @@ func Do_test_quotestar_for_x11()
|
|||||||
else
|
else
|
||||||
call remote_send(name, ":gui -f\<CR>")
|
call remote_send(name, ":gui -f\<CR>")
|
||||||
endif
|
endif
|
||||||
" Wait for the server to be up and answering requests.
|
" Wait for the server in the GUI to be up and answering requests.
|
||||||
call WaitFor('remote_expr("' . name . '", "v:version", "", 1) != ""')
|
call WaitFor('remote_expr("' . name . '", "has(\"gui_running\")", "", 1) =~ "1"')
|
||||||
|
|
||||||
call remote_send(name, ":let @* = 'maybe'\<CR>")
|
call remote_send(name, ":let @* = 'maybe'\<CR>")
|
||||||
call WaitFor('remote_expr("' . name . '", "@*", "", 1) == "maybe"')
|
call WaitFor('remote_expr("' . name . '", "@*", "", 1) == "maybe"')
|
||||||
|
@@ -1139,7 +1139,7 @@ static const int included_patches[] = {
|
|||||||
// 503,
|
// 503,
|
||||||
502,
|
502,
|
||||||
// 501,
|
// 501,
|
||||||
// 500,
|
500,
|
||||||
499,
|
499,
|
||||||
498,
|
498,
|
||||||
// 497,
|
// 497,
|
||||||
|
Reference in New Issue
Block a user