vim-patch:8.2.0457: Test_quotestar() often fails when run under valgrind

Problem:    Test_quotestar() often fails when run under valgrind.
Solution:   Wait longer for the GUI to start.
26bde6e2eb
This commit is contained in:
Jan Edmund Lazo
2020-03-26 19:29:20 -04:00
parent 22eb3c9e49
commit bc84cf2585

View File

@@ -108,7 +108,8 @@ func Do_test_quotestar_for_x11()
call remote_send(name, ":gui -f\<CR>") call remote_send(name, ":gui -f\<CR>")
endif endif
" Wait for the server in the GUI to be up and answering requests. " Wait for the server in the GUI to be up and answering requests.
call WaitForAssert({-> assert_match("1", remote_expr(name, "has('gui_running')", "", 1))}) " On some systems and with valgrind this can be very slow.
call WaitForAssert({-> assert_match("1", remote_expr(name, "has('gui_running')", "", 1))}, 10000)
call remote_send(name, ":let @* = 'maybe'\<CR>") call remote_send(name, ":let @* = 'maybe'\<CR>")
call WaitForAssert({-> assert_equal("maybe", remote_expr(name, "@*", "", 2))}) call WaitForAssert({-> assert_equal("maybe", remote_expr(name, "@*", "", 2))})