Mercurial > vim
diff src/testdir/test_vim9_func.vim @ 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 | ba81f5e300b7 |
children | b6d36f0b4f03 |
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()