forked from aniani/vim
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:
@@ -1665,17 +1665,25 @@ def Test_synID()
|
|||||||
enddef
|
enddef
|
||||||
|
|
||||||
def Test_term_gettty()
|
def Test_term_gettty()
|
||||||
let buf = Run_shell_in_terminal({})
|
if !has('terminal')
|
||||||
assert_notequal('', term_gettty(buf, true))
|
MissingFeature 'terminal'
|
||||||
StopShellInTerminal(buf)
|
else
|
||||||
|
let buf = Run_shell_in_terminal({})
|
||||||
|
assert_notequal('', term_gettty(buf, true))
|
||||||
|
StopShellInTerminal(buf)
|
||||||
|
endif
|
||||||
enddef
|
enddef
|
||||||
|
|
||||||
def Test_term_start()
|
def Test_term_start()
|
||||||
botright new
|
if !has('terminal')
|
||||||
let winnr = winnr()
|
MissingFeature 'terminal'
|
||||||
term_start(&shell, #{curwin: true})
|
else
|
||||||
assert_equal(winnr, winnr())
|
botright new
|
||||||
bwipe!
|
let winnr = winnr()
|
||||||
|
term_start(&shell, #{curwin: true})
|
||||||
|
assert_equal(winnr, winnr())
|
||||||
|
bwipe!
|
||||||
|
endif
|
||||||
enddef
|
enddef
|
||||||
|
|
||||||
def Test_timer_paused()
|
def Test_timer_paused()
|
||||||
|
|||||||
@@ -754,6 +754,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 */
|
||||||
|
/**/
|
||||||
|
1629,
|
||||||
/**/
|
/**/
|
||||||
1628,
|
1628,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user