changeset 22159:4b5f7869b8c0 v8.2.1629

patch 8.2.1629: test fails without terminal feature Commit: https://github.com/vim/vim/commit/63969ef07e99502744114717cb7d63bd4c6e7eae Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 6 20:06:59 2020 +0200 patch 8.2.1629: test fails without terminal feature Problem: Test fails without terminal feature. Solution: Check for terminal feature.
author Bram Moolenaar <Bram@vim.org>
date Sun, 06 Sep 2020 20:15:03 +0200
parents 3ba89b3ea99c
children 3dfa378dda43
files src/testdir/test_vim9_func.vim src/version.c
diffstat 2 files changed, 18 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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()
--- 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,