Mercurial > vim
comparison src/testdir/test_clientserver.vim @ 19956:ea0ff06dccba v8.2.0534
patch 8.2.0534: client-server test fails under valgrind
Commit: https://github.com/vim/vim/commit/25d57009520f0e590920b9f953b1cbbb358e72a2
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Apr 8 22:56:34 2020 +0200
patch 8.2.0534: client-server test fails under valgrind
Problem: Client-server test fails under valgrind.
Solution: Use WaitForAssert().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 08 Apr 2020 23:00:04 +0200 |
parents | 2c4d9ca33769 |
children | 2fb397573541 |
comparison
equal
deleted
inserted
replaced
19955:8f6b7cb45a04 | 19956:ea0ff06dccba |
---|---|
127 call assert_equal("Xfile1\nXfile2\nXfile3\n", remote_expr(name, 'argv()')) | 127 call assert_equal("Xfile1\nXfile2\nXfile3\n", remote_expr(name, 'argv()')) |
128 eval name->remote_send(":%bw!\<CR>") | 128 eval name->remote_send(":%bw!\<CR>") |
129 | 129 |
130 " Edit files in separate tab pages | 130 " Edit files in separate tab pages |
131 call system(cmd .. ' --remote-tab Xfile1 Xfile2 Xfile3') | 131 call system(cmd .. ' --remote-tab Xfile1 Xfile2 Xfile3') |
132 call assert_equal('3', remote_expr(name, 'tabpagenr("$")')) | 132 call WaitForAssert({-> assert_equal('3', remote_expr(name, 'tabpagenr("$")'))}) |
133 call assert_equal('Xfile2', remote_expr(name, 'bufname(tabpagebuflist(2)[0])')) | 133 call assert_equal('Xfile2', remote_expr(name, 'bufname(tabpagebuflist(2)[0])')) |
134 eval name->remote_send(":%bw!\<CR>") | 134 eval name->remote_send(":%bw!\<CR>") |
135 | 135 |
136 " Edit a file using --remote-wait | 136 " Edit a file using --remote-wait |
137 eval name->remote_send(":source $VIMRUNTIME/plugin/rrhelper.vim\<CR>") | 137 eval name->remote_send(":source $VIMRUNTIME/plugin/rrhelper.vim\<CR>") |