]> granicus.if.org Git - vim/commitdiff
patch 8.2.0534: client-server test fails under valgrind v8.2.0534
authorBram Moolenaar <Bram@vim.org>
Wed, 8 Apr 2020 20:56:34 +0000 (22:56 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 8 Apr 2020 20:56:34 +0000 (22:56 +0200)
Problem:    Client-server test fails under valgrind.
Solution:   Use WaitForAssert().

src/testdir/test_clientserver.vim
src/version.c

index 7936227eb449cb05dc45b506c13fbc4cb826e560..4a48aed91c26120691b50a6793407d7d0fc97c4e 100644 (file)
@@ -129,7 +129,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>")
 
index aaa1dc352617a4fd2b85e52c4f055ce8d0a1d616..2eadd13049e3c7a2df4e56f6053cbd3f9915526d 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    534,
 /**/
     533,
 /**/