]> granicus.if.org Git - vim/commitdiff
patch 8.2.1742: test still fails without the terminal feature v8.2.1742
authorBram Moolenaar <Bram@vim.org>
Fri, 25 Sep 2020 21:12:51 +0000 (23:12 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 25 Sep 2020 21:12:51 +0000 (23:12 +0200)
Problem:    Test still fails without the terminal feature.
Solution:   Put check for terminal feature in separate function.

src/testdir/test_vim9_script.vim
src/version.c

index dee4503cf3abd16f58a0c4001eddc41646789273..f63ecfc71284f012f0bf7f780ada4da20fa82f65 100644 (file)
@@ -2831,9 +2831,14 @@ def Test_unset_any_variable()
   CheckDefAndScriptSuccess(lines)
 enddef
 
-def Test_define_func_at_command_line()
+func Test_define_func_at_command_line()
   CheckRunVimInTerminal
 
+  " call indirectly to avoid compilation error for missing functions
+  call Run_Test_define_func_at_command_line()
+endfunc
+
+def Run_Test_define_func_at_command_line()
   # run in a separate Vim instance to avoid the script context
   let lines =<< trim END
     func CheckAndQuit()
index 2258be9771b329cf72991df7faf4c5b74c1dbc09..4983b1b6bfea2002a2d7ca89878e0177e537a319 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1742,
 /**/
     1741,
 /**/