Mercurial > vim
diff src/testdir/test_quotestar.vim @ 22969:dcb59b1cc0c1 v8.2.2031
patch 8.2.2031: some tests fail when run under valgrind
Commit: https://github.com/vim/vim/commit/18dc355395f2eac72ab83d984cacd26ae61c791f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 22 14:24:00 2020 +0100
patch 8.2.2031: some tests fail when run under valgrind
Problem: Some tests fail when run under valgrind.
Solution: Avoid timing problems.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 22 Nov 2020 14:30:06 +0100 |
parents | 08940efa6b4e |
children | a5a772dace5b |
line wrap: on
line diff
--- a/src/testdir/test_quotestar.vim +++ b/src/testdir/test_quotestar.vim @@ -98,8 +98,6 @@ func Do_test_quotestar_for_x11() " Running in a terminal and the GUI is available: Tell the server to open " the GUI and check that the remote command still works. - " Need to wait for the GUI to start up, otherwise the send hangs in trying - " to send to the terminal window. if has('gui_athena') || has('gui_motif') " For those GUIs, ignore the 'failed to create input context' error. call remote_send(name, ":call test_ignore_error('E285') | gui -f\<CR>") @@ -107,7 +105,10 @@ func Do_test_quotestar_for_x11() call remote_send(name, ":gui -f\<CR>") endif " Wait for the server in the GUI to be up and answering requests. + " First need to wait for the GUI to start up, otherwise the send hangs in + " trying to send to the terminal window. " On some systems and with valgrind this can be very slow. + sleep 1 call WaitForAssert({-> assert_match("1", remote_expr(name, "has('gui_running')", "", 1))}, 10000) call remote_send(name, ":let @* = 'maybe'\<CR>")