1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2020-10-13 18:38:11 +02:00
parent f4e8cdd3d2
commit 2b9b17ea5d
2 changed files with 8 additions and 2 deletions

View 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()

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1841,
/**/
1840,
/**/