patch 8.2.1363: test trying to run terminal when it is not supported
Problem: Test trying to run terminal when it is not supported.
Solution: Check if Vim can be run in a terminal.
diff --git a/src/testdir/test_termcodes.vim b/src/testdir/test_termcodes.vim
index da2f066..a228f1b 100644
--- a/src/testdir/test_termcodes.vim
+++ b/src/testdir/test_termcodes.vim
@@ -8,6 +8,7 @@
source shared.vim
source mouse.vim
source view_util.vim
+source term_util.vim
func Test_term_mouse_left_click()
new
@@ -1895,6 +1896,7 @@
endfunc
func Test_list_builtin_terminals()
+ CheckRunVimInTerminal
let buf = RunVimInTerminal('', #{rows: 14})
call term_sendkeys(buf, ":set cmdheight=3\<CR>")
call term_wait(buf, 100)