patch 8.2.1629: test fails without terminal feature

Problem:    Test fails without terminal feature.
Solution:   Check for terminal feature.
This commit is contained in:
Bram Moolenaar
2020-09-06 20:06:59 +02:00
parent 418155def2
commit 63969ef07e
2 changed files with 18 additions and 8 deletions

View File

@ -1665,17 +1665,25 @@ def Test_synID()
enddef
def Test_term_gettty()
let buf = Run_shell_in_terminal({})
assert_notequal('', term_gettty(buf, true))
StopShellInTerminal(buf)
if !has('terminal')
MissingFeature 'terminal'
else
let buf = Run_shell_in_terminal({})
assert_notequal('', term_gettty(buf, true))
StopShellInTerminal(buf)
endif
enddef
def Test_term_start()
botright new
let winnr = winnr()
term_start(&shell, #{curwin: true})
assert_equal(winnr, winnr())
bwipe!
if !has('terminal')
MissingFeature 'terminal'
else
botright new
let winnr = winnr()
term_start(&shell, #{curwin: true})
assert_equal(winnr, winnr())
bwipe!
endif
enddef
def Test_timer_paused()

View File

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