mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
vim-patch:8.2.0534: client-server test fails under valgrind
Problem: Client-server test fails under valgrind.
Solution: Use WaitForAssert().
25d5700952
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -147,7 +147,7 @@ func Test_client_server()
|
|||||||
|
|
||||||
" Edit files in separate tab pages
|
" Edit files in separate tab pages
|
||||||
call system(cmd .. ' --remote-tab Xfile1 Xfile2 Xfile3')
|
call system(cmd .. ' --remote-tab Xfile1 Xfile2 Xfile3')
|
||||||
call assert_equal('3', remote_expr(name, 'tabpagenr("$")'))
|
call WaitForAssert({-> assert_equal('3', remote_expr(name, 'tabpagenr("$")'))})
|
||||||
call assert_equal('Xfile2', remote_expr(name, 'bufname(tabpagebuflist(2)[0])'))
|
call assert_equal('Xfile2', remote_expr(name, 'bufname(tabpagebuflist(2)[0])'))
|
||||||
eval name->remote_send(":%bw!\<CR>")
|
eval name->remote_send(":%bw!\<CR>")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user