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.
85045a73db

* 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.
08f88b139d

* oldtest: nvim does not support ':set term'
This commit is contained in:
Jan Edmund Lazo
2018-06-24 14:23:33 -04:00
committed by Justin M. Keyes
parent 15bd936b96
commit 89cb304ea0

View File

@@ -251,3 +251,16 @@ func Test_silent_ex_mode()
let out = system(GetVimCommand() . '-u NONE -es -c''set verbose=1|h|exe "%norm\<c-y>\<c-d>"'' -c cq') let out = system(GetVimCommand() . '-u NONE -es -c''set verbose=1|h|exe "%norm\<c-y>\<c-d>"'' -c cq')
call assert_notmatch('E315:', out) call assert_notmatch('E315:', out)
endfunc 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