diff src/testdir/test_vim9_script.vim @ 22387:36f13f35bd78 v8.2.1742

patch 8.2.1742: test still fails without the terminal feature Commit: https://github.com/vim/vim/commit/7e9210ea5320e0c3fd9fd93e3f3f1a59e029cf46 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 25 23:12:51 2020 +0200 patch 8.2.1742: test still fails without the terminal feature Problem: Test still fails without the terminal feature. Solution: Put check for terminal feature in separate function.
author Bram Moolenaar <Bram@vim.org>
date Fri, 25 Sep 2020 23:15:03 +0200
parents 82d92f6c756c
children a9fb7efa31d6
line wrap: on
line diff
--- a/src/testdir/test_vim9_script.vim
+++ b/src/testdir/test_vim9_script.vim
@@ -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()