]> granicus.if.org Git - vim/commitdiff
patch 8.2.1841: Vim9: test for compilation error fails in normal build v8.2.1841
authorBram Moolenaar <Bram@vim.org>
Tue, 13 Oct 2020 16:38:11 +0000 (18:38 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 13 Oct 2020 16:38:11 +0000 (18:38 +0200)
Problem:    Vim9: test for compilation error fails in normal build.
Solution:   Invoke CheckRunVimInTerminal in a separate function.

src/testdir/test_vim9_func.vim
src/version.c

index 4329754c390b11a0c75e536529211de1d9304500..6ff23e95a73d9d0e16038ee6b511f8c88a0916d8 100644 (file)
@@ -13,10 +13,14 @@ func Test_def_basic()
   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()
index 2b3657b8fed6889d1e2c97d4a8234c7edb609cca..6b336314e490d2f3eaf8d1c007cb593b7d508274 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1841,
 /**/
     1840,
 /**/