diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-10-26 23:22:37 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-10-27 00:14:02 +0800 |
commit | 31758d032ffeaf746eaae99f79c6b4e4e35dfebe (patch) | |
tree | 278ca9a9d7468ca68186841a46ff5a634ee5a189 /src | |
parent | 5559cabf4d851edb94cc2f09d50bcf0a04bd0819 (diff) | |
download | rneovim-31758d032ffeaf746eaae99f79c6b4e4e35dfebe.tar.gz rneovim-31758d032ffeaf746eaae99f79c6b4e4e35dfebe.tar.bz2 rneovim-31758d032ffeaf746eaae99f79c6b4e4e35dfebe.zip |
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 (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_clientserver.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_clientserver.vim b/src/nvim/testdir/test_clientserver.vim index a4ebce5af9..943f79d98f 100644 --- 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>") |