# HG changeset patch # User Bram Moolenaar # Date 1602607505 -7200 # Node ID 622294200ccd6bdbe6340ef0ef86da684018db06 # Parent 8a4b736cbba236a475c0369c9edcf0cb30543de8 patch 8.2.1841: Vim9: test for compilation error fails in normal build Commit: https://github.com/vim/vim/commit/2b9b17ea5daaaa693d0891e9a999d711f0e0f743 Author: Bram Moolenaar 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. diff --git a/src/testdir/test_vim9_func.vim b/src/testdir/test_vim9_func.vim --- 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() diff --git a/src/version.c b/src/version.c --- 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,