summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-06 20:06:59 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-06 20:06:59 +0200
commit63969ef07e99502744114717cb7d63bd4c6e7eae (patch)
tree79450532739152e3e82e41d0cdee7432afbca2f2
parent418155def2aa45afd7fc034db341dc874b00af3a (diff)
patch 8.2.1629: test fails without terminal featurev8.2.1629
Problem: Test fails without terminal feature. Solution: Check for terminal feature.
-rw-r--r--src/testdir/test_vim9_func.vim24
-rw-r--r--src/version.c2
2 files changed, 18 insertions, 8 deletions
diff --git a/src/testdir/test_vim9_func.vim b/src/testdir/test_vim9_func.vim
index a3a53e6b0f..4efb48eedc 100644
--- a/src/testdir/test_vim9_func.vim
+++ b/src/testdir/test_vim9_func.vim
@@ -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()
diff --git a/src/version.c b/src/version.c
index 4d25ecc0c5..4ba5e51e8e 100644
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1629,
+/**/
1628,
/**/
1627,