Problem: Vim9: test for compilation error fails in normal build.
Solution: Invoke CheckRunVimInTerminal in a separate function.
call SomeFunc()->assert_equal('yes')
endfunc
-def Test_compiling_error()
- # use a terminal to see the whole error message
+func Test_compiling_error()
+ " use a terminal to see the whole error message
CheckRunVimInTerminal
+ call TestCompilingError()
+endfunc
+
+def TestCompilingError()
var lines =<< trim END
vim9script
def Fails()
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1841,
/**/
1840,
/**/