Mercurial > vim
comparison src/testdir/test_quotestar.vim @ 19801:92c6105e9c8e v8.2.0457
patch 8.2.0457: Test_quotestar() often fails when run under valgrind
Commit: https://github.com/vim/vim/commit/26bde6e2eb307898ab7ed42bf8e7e2ccde979e02
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 26 21:11:58 2020 +0100
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 26 Mar 2020 21:15:04 +0100 |
parents | 853afcc375b2 |
children | 08940efa6b4e |
comparison
equal
deleted
inserted
replaced
19800:6b2983e725f3 | 19801:92c6105e9c8e |
---|---|
105 call remote_send(name, ":call test_ignore_error('E285') | gui -f\<CR>") | 105 call remote_send(name, ":call test_ignore_error('E285') | gui -f\<CR>") |
106 else | 106 else |
107 call remote_send(name, ":gui -f\<CR>") | 107 call remote_send(name, ":gui -f\<CR>") |
108 endif | 108 endif |
109 " Wait for the server in the GUI to be up and answering requests. | 109 " Wait for the server in the GUI to be up and answering requests. |
110 call WaitForAssert({-> assert_match("1", remote_expr(name, "has('gui_running')", "", 1))}) | 110 " On some systems and with valgrind this can be very slow. |
111 call WaitForAssert({-> assert_match("1", remote_expr(name, "has('gui_running')", "", 1))}, 10000) | |
111 | 112 |
112 call remote_send(name, ":let @* = 'maybe'\<CR>") | 113 call remote_send(name, ":let @* = 'maybe'\<CR>") |
113 call WaitForAssert({-> assert_equal("maybe", remote_expr(name, "@*", "", 2))}) | 114 call WaitForAssert({-> assert_equal("maybe", remote_expr(name, "@*", "", 2))}) |
114 | 115 |
115 call assert_equal('maybe', @*) | 116 call assert_equal('maybe', @*) |