diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-10-26 22:38:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-26 22:38:25 +0800 |
commit | a8d454816ad14e05578d37d1e16c34d8207fde19 (patch) | |
tree | 2d0138b3d3092052268c0446873a86ec3389f5d7 /src/nvim/testdir/test_startup.vim | |
parent | c00e711d5a860fb019f594d164b4327d942313f8 (diff) | |
parent | 8f8205ffe43541ccd475835a06fc89c8d19299f5 (diff) | |
download | rneovim-a8d454816ad14e05578d37d1e16c34d8207fde19.tar.gz rneovim-a8d454816ad14e05578d37d1e16c34d8207fde19.tar.bz2 rneovim-a8d454816ad14e05578d37d1e16c34d8207fde19.zip |
Merge pull request #20816 from zeertzjq/vim-8.1.1826
vim-patch:8.1.1826,9.0.0019
Diffstat (limited to 'src/nvim/testdir/test_startup.vim')
-rw-r--r-- | src/nvim/testdir/test_startup.vim | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/src/nvim/testdir/test_startup.vim b/src/nvim/testdir/test_startup.vim index b30a5e7edb..e267d3f972 100644 --- a/src/nvim/testdir/test_startup.vim +++ b/src/nvim/testdir/test_startup.vim @@ -267,10 +267,9 @@ endfunc " Test the -V[N] argument to set the 'verbose' option to [N] func Test_V_arg() - if has('gui_running') - " Can't catch the output of gvim. - return - endif + " Can't catch the output of gvim. + CheckNotGui + let out = system(GetVimCommand() . ' --clean -es -X -V0 -c "set verbose?" -cq') call assert_equal(" verbose=0\n", out) @@ -543,10 +542,9 @@ endfunc func Test_invalid_args() - if !has('unix') || has('gui_running') - " can't get output of Vim. - return - endif + " must be able to get the output of Vim. + CheckUnix + CheckNotGui for opt in ['-Y', '--does-not-exist'] let out = split(system(GetVimCommand() .. ' ' .. opt), "\n") @@ -747,10 +745,9 @@ func Test_progpath() endfunc func Test_silent_ex_mode() - if !has('unix') || has('gui_running') - " can't get output of Vim. - return - endif + " must be able to get the output of Vim. + CheckUnix + CheckNotGui " This caused an ml_get error. let out = system(GetVimCommand() . ' -u NONE -es -c''set verbose=1|h|exe "%norm\<c-y>\<c-d>"'' -c cq') @@ -758,10 +755,9 @@ func Test_silent_ex_mode() endfunc func Test_default_term() - if !has('unix') || has('gui_running') - " can't get output of Vim. - return - endif + " must be able to get the output of Vim. + CheckUnix + CheckNotGui let save_term = $TERM let $TERM = 'unknownxxx' @@ -796,6 +792,15 @@ func Test_zzz_startinsert() call delete('Xtestout') endfunc +func Test_issue_3969() + " Can't catch the output of gvim. + CheckNotGui + + " Check that message is not truncated. + let out = system(GetVimCommand() . ' -es -X -V1 -c "echon ''hello''" -cq') + call assert_equal('hello', out) +endfunc + func Test_start_with_tabs() if !CanRunVimInTerminal() return |