diff src/testdir/test_clientserver.vim @ 24182:493870e7f61d v8.2.2632

patch 8.2.2632: not all command line arguments are tested Commit: https://github.com/vim/vim/commit/c5cf369e9543ff065e2e1da91da3218c223840e2 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 20 22:16:56 2021 +0100 patch 8.2.2632: not all command line arguments are tested Problem: Not all command line arguments are tested. Solution: Add tests for -D and -serverlist. (Dominique Pell?, closes https://github.com/vim/vim/issues/7992)
author Bram Moolenaar <Bram@vim.org>
date Sat, 20 Mar 2021 22:30:02 +0100
parents b02ac00aacbf
children 54a547489e49
line wrap: on
line diff
--- a/src/testdir/test_clientserver.vim
+++ b/src/testdir/test_clientserver.vim
@@ -43,6 +43,14 @@ func Test_client_server()
   " When using valgrind it takes much longer.
   call WaitForAssert({-> assert_match(name, serverlist())})
 
+  if !has('win32')
+    if RunVim([], [], '--serverlist >Xtest_serverlist')
+      let lines = readfile('Xtest_serverlist')
+      call assert_true(index(lines, 'XVIMTEST') >= 0)
+    endif
+    call delete('Xtest_serverlist')
+  endif
+
   eval name->remote_foreground()
 
   call remote_send(name, ":let testvar = 'yes'\<CR>")