]> granicus.if.org Git - vim/commitdiff
patch 8.2.1629: test fails without terminal feature v8.2.1629
authorBram Moolenaar <Bram@vim.org>
Sun, 6 Sep 2020 18:06:59 +0000 (20:06 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 6 Sep 2020 18:06:59 +0000 (20:06 +0200)
Problem:    Test fails without terminal feature.
Solution:   Check for terminal feature.

src/testdir/test_vim9_func.vim
src/version.c

index a3a53e6b0fcf3ed343c439c15491f048fab2e492..4efb48eedc9a8b25d617327016990b29c7033c53 100644 (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()
index 4d25ecc0c5668b4ecb89ec2a215006b22c69c26b..4ba5e51e8e5666ecb752f08684e1a625fd3286c0 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1629,
 /**/
     1628,
 /**/