diff options
author | Dominique Pelle <dominique.pelle@gmail.com> | 2021-05-06 17:36:55 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-05-06 17:36:55 +0200 |
commit | 6d37e8e3baafba460bd2d051170d213c1ba9a523 (patch) | |
tree | d53ed8ddd30c91ce598262e88f7430de8d81a358 /src/testdir/test_startup.vim | |
parent | b7c978154e0816f4dcfae8a06b4ba1bfb7f796f6 (diff) | |
download | vim-git-6d37e8e3baafba460bd2d051170d213c1ba9a523.tar.gz |
patch 8.2.2837: various code lines not covered by testsv8.2.2837
Problem: Various code lines not covered by tests.
Solution: Add test cases. (Dominique Pellé, closes #8178)
Diffstat (limited to 'src/testdir/test_startup.vim')
-rw-r--r-- | src/testdir/test_startup.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/test_startup.vim b/src/testdir/test_startup.vim index 2d5fdcb24..6e814704a 100644 --- a/src/testdir/test_startup.vim +++ b/src/testdir/test_startup.vim @@ -622,6 +622,12 @@ func Test_invalid_args() endfor if has('gui_gtk') + let out = split(system(GetVimCommand() .. ' --socketid'), "\n") + call assert_equal(1, v:shell_error) + call assert_match('^VIM - Vi IMproved .* (.*)$', out[0]) + call assert_equal('Argument missing after: "--socketid"', out[1]) + call assert_equal('More info with: "vim -h"', out[2]) + for opt in ['--socketid x', '--socketid 0xg'] let out = split(system(GetVimCommand() .. ' ' .. opt), "\n") call assert_equal(1, v:shell_error) @@ -629,6 +635,7 @@ func Test_invalid_args() call assert_equal('Invalid argument for: "--socketid"', out[1]) call assert_equal('More info with: "vim -h"', out[2]) endfor + endif endfunc |