diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-10-27 08:23:32 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-27 08:23:32 +0800 |
| commit | 23204c83ed5333811192513ed9f61d70682fbee5 (patch) | |
| tree | 85b80a2480c21f8bdb8f4354750cc7a665e9904a /src/nvim/testdir/test_startup.vim | |
| parent | c86371258cb10a015cf151b84e04df4480569aff (diff) | |
| parent | c031547c8d39c5fc99c6f1fab31b50ba6fb32cbc (diff) | |
| download | rneovim-23204c83ed5333811192513ed9f61d70682fbee5.tar.gz rneovim-23204c83ed5333811192513ed9f61d70682fbee5.tar.bz2 rneovim-23204c83ed5333811192513ed9f61d70682fbee5.zip | |
Merge pull request #20822 from zeertzjq/vim-8.2.2837
vim-patch:8.2.{2837,3839}: various tests
Diffstat (limited to 'src/nvim/testdir/test_startup.vim')
| -rw-r--r-- | src/nvim/testdir/test_startup.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_startup.vim b/src/nvim/testdir/test_startup.vim index e267d3f972..b8aad1bc46 100644 --- a/src/nvim/testdir/test_startup.vim +++ b/src/nvim/testdir/test_startup.vim @@ -620,6 +620,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) @@ -627,6 +633,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 |