# HG changeset patch # User Bram Moolenaar # Date 1599416103 -7200 # Node ID 4b5f7869b8c0b4005e2efdd0407110f2d90ea07a # Parent 3ba89b3ea99c848d68c96ecbe88e9499801739c8 patch 8.2.1629: test fails without terminal feature Commit: https://github.com/vim/vim/commit/63969ef07e99502744114717cb7d63bd4c6e7eae Author: Bram Moolenaar 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. diff --git a/src/testdir/test_vim9_func.vim b/src/testdir/test_vim9_func.vim --- 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 --- 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,