From 89cb304ea0ac7fb94e7ccd319c0f98b8f6d3cb9a Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sun, 24 Jun 2018 14:23:33 -0400 Subject: vim-patch:8.0.0{538,539} (#8615) * vim-patch:8.0.0538: no test for falling back to default term value Problem: No test for falling back to default term value. Solution: Add a test. https://github.com/vim/vim/commit/85045a73db258a054a17fd52a67eb5cd02a788dc * vim-patch:8.0.0539: startup test fails on Mac Problem: Startup test fails on Mac. Solution: Use another term name, "unknown" is known. Avoid a 2 second delay. https://github.com/vim/vim/commit/08f88b139d2f93661ed2b17214ee6b308b4edb5b * oldtest: nvim does not support ':set term' --- src/nvim/testdir/test_startup.vim | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') diff --git a/src/nvim/testdir/test_startup.vim b/src/nvim/testdir/test_startup.vim index 495c561991..7b77402115 100644 --- a/src/nvim/testdir/test_startup.vim +++ b/src/nvim/testdir/test_startup.vim @@ -251,3 +251,16 @@ func Test_silent_ex_mode() let out = system(GetVimCommand() . '-u NONE -es -c''set verbose=1|h|exe "%norm\\"'' -c cq') call assert_notmatch('E315:', out) endfunc + +func Test_default_term() + if !has('unix') || has('gui_running') + " can't get output of Vim. + return + endif + + let save_term = $TERM + let $TERM = 'unknownxxx' + let out = system(GetVimCommand() . ' -c ''echo &term'' -c cq') + call assert_match('nvim', out) + let $TERM = save_term +endfunc -- cgit