0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

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.
This commit is contained in:
Bram Moolenaar
2017-04-02 16:54:09 +02:00
parent fa0ad0bb0b
commit 85045a73db
2 changed files with 15 additions and 0 deletions

View File

@@ -208,3 +208,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 = 'unknown'
let out = system(GetVimCommand() . ' -c''set term'' -c cq')
call assert_match("defaulting to 'ansi'", out)
let $TERM = save_term
endfunc

View File

@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
538,
/**/ /**/
537, 537,
/**/ /**/