patch 9.2.0343: tests: test_clientserver may fail on slower systems

Commit: 
https://github.com/vim/vim/commit/9d95410aa4079e78c07d8a99c7e2e072f133d5c2
Author: James McCoy <[email protected]>
Date:   Tue Apr 14 16:25:50 2026 +0000

    patch 9.2.0343: tests: test_clientserver may fail on slower systems
    
    Problem:  tests: test_clientserver may fail on slower systems
    Solution: Wait for argc() before checking argv() (James McCoy).
    
    On slower systems, the argv() check may run before the server has
    populated the arg list.
    
    Add a wait for argc() to be 3 to be more tolerant of such systems
    
    closes: #19974
    
    Signed-off-by: James McCoy <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/testdir/test_clientserver.vim 
b/src/testdir/test_clientserver.vim
index 8aa9428f2..0ced9cbc4 100644
--- a/src/testdir/test_clientserver.vim
+++ b/src/testdir/test_clientserver.vim
@@ -145,6 +145,7 @@ func Test_client_server()
 
     " Edit multiple files using --remote
     call system(cmd .. ' --remote Xclientfile1 Xclientfile2 Xclientfile3')
+    call WaitForAssert({-> assert_equal('3', remote_expr(name, 'argc()'))})
     call assert_match(".*Xclientfile1
.*Xclientfile2
.*Xclientfile3
", remote_expr(name, 'argv()'))
     eval name->remote_send(":%bw!\<CR>")
 
diff --git a/src/version.c b/src/version.c
index a2c470932..0028692f2 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    343,
 /**/
     342,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1wCgeK-002VWC-Ir%40256bit.org.

Raspunde prin e-mail lui