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:
@@ -13,10 +13,14 @@ func Test_def_basic()
|
|||||||
call SomeFunc()->assert_equal('yes')
|
call SomeFunc()->assert_equal('yes')
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
def Test_compiling_error()
|
func Test_compiling_error()
|
||||||
# use a terminal to see the whole error message
|
" use a terminal to see the whole error message
|
||||||
CheckRunVimInTerminal
|
CheckRunVimInTerminal
|
||||||
|
|
||||||
|
call TestCompilingError()
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
def TestCompilingError()
|
||||||
var lines =<< trim END
|
var lines =<< trim END
|
||||||
vim9script
|
vim9script
|
||||||
def Fails()
|
def Fails()
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1841,
|
||||||
/**/
|
/**/
|
||||||
1840,
|
1840,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user