summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_clientserver.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-03-20 22:16:56 +0100
committerBram Moolenaar <Bram@vim.org>2021-03-20 22:16:56 +0100
commitc5cf369e9543ff065e2e1da91da3218c223840e2 (patch)
treef220b0742f066099882f82e83758ddaba361243d /src/testdir/test_clientserver.vim
parenta0c8aea479ca055ce43ba2984a9933f6c48e6161 (diff)
patch 8.2.2632: not all command line arguments are testedv8.2.2632
Problem: Not all command line arguments are tested. Solution: Add tests for -D and -serverlist. (Dominique Pellé, closes #7992)
Diffstat (limited to 'src/testdir/test_clientserver.vim')
-rw-r--r--src/testdir/test_clientserver.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_clientserver.vim b/src/testdir/test_clientserver.vim
index 6a73d93e5b..2704fb668d 100644
--- 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>")