comparison src/testdir/test_clientserver.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 ff21e2962490
children 0d79d18f1c69
comparison
equal deleted inserted replaced
22968:5ae81cb3da0a 22969:dcb59b1cc0c1
61 call remote_send(name, ":call test_ignore_error('E285') | gui -f\<CR>") 61 call remote_send(name, ":call test_ignore_error('E285') | gui -f\<CR>")
62 else 62 else
63 call remote_send(name, ":gui -f\<CR>") 63 call remote_send(name, ":gui -f\<CR>")
64 endif 64 endif
65 " Wait for the server to be up and answering requests. 65 " Wait for the server to be up and answering requests.
66 sleep 100m 66 " When using valgrind this can be very, very slow.
67 call WaitForAssert({-> assert_true(name->remote_expr("v:version", "", 1) != "")}) 67 sleep 1
68 call WaitForAssert({-> assert_match('\d', name->remote_expr("v:version", "", 1))}, 10000)
68 69
69 call remote_send(name, ":let testvar = 'maybe'\<CR>") 70 call remote_send(name, ":let testvar = 'maybe'\<CR>")
70 call WaitForAssert({-> assert_equal('maybe', remote_expr(name, "testvar", "", 2))}) 71 call WaitForAssert({-> assert_equal('maybe', remote_expr(name, "testvar", "", 2))})
71 endif 72 endif
72 73