Skip to content

Commit

Permalink
patch 8.0.0538: no test for falling back to default term value
Browse files Browse the repository at this point in the history
Problem:    No test for falling back to default term value.
Solution:   Add a test.
  • Loading branch information
brammool committed Apr 2, 2017
1 parent fa0ad0b commit 85045a7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/testdir/test_startup.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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')
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 = 'unknown'
let out = system(GetVimCommand() . ' -c''set term'' -c cq')
call assert_match("defaulting to 'ansi'", out)
let $TERM = save_term
endfunc
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
538,
/**/
537,
/**/
Expand Down

0 comments on commit 85045a7

Please sign in to comment.