neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 31758d032ffeaf746eaae99f79c6b4e4e35dfebe
parent 5559cabf4d851edb94cc2f09d50bcf0a04bd0819
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Wed, 26 Oct 2022 23:22:37 +0800

vim-patch:8.2.0534: client-server test fails under valgrind

Problem:    Client-server test fails under valgrind.
Solution:   Use WaitForAssert().

https://github.com/vim/vim/commit/25d57009520f0e590920b9f953b1cbbb358e72a2

Co-authored-by: Bram Moolenaar <Bram@vim.org>

Diffstat:
Msrc/nvim/testdir/test_clientserver.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nvim/testdir/test_clientserver.vim b/src/nvim/testdir/test_clientserver.vim @@ -147,7 +147,7 @@ func Test_client_server() " Edit files in separate tab pages 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])')) eval name->remote_send(":%bw!\<CR>")