1
0
forked from aniani/vim

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 #7992)
This commit is contained in:
Bram Moolenaar
2021-03-20 22:16:56 +01:00
parent a0c8aea479
commit c5cf369e95
3 changed files with 25 additions and 0 deletions

View File

@@ -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>")