changeset 22586:622294200ccd v8.2.1841

patch 8.2.1841: Vim9: test for compilation error fails in normal build Commit: https://github.com/vim/vim/commit/2b9b17ea5daaaa693d0891e9a999d711f0e0f743 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 13 18:38:11 2020 +0200 patch 8.2.1841: Vim9: test for compilation error fails in normal build Problem: Vim9: test for compilation error fails in normal build. Solution: Invoke CheckRunVimInTerminal in a separate function.
author Bram Moolenaar <Bram@vim.org>
date Tue, 13 Oct 2020 18:45:05 +0200
parents 8a4b736cbba2
children 1e0d1c677ae1
files src/testdir/test_vim9_func.vim src/version.c
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_vim9_func.vim
+++ b/src/testdir/test_vim9_func.vim
@@ -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()
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1841,
+/**/
     1840,
 /**/
     1839,