Patch 8.2.1841
Problem: Vim9: test for compilation error fails in normal build.
Solution: Invoke CheckRunVimInTerminal in a separate function.
Files: src/testdir/test_vim9_func.vim
*** ../vim-8.2.1840/src/testdir/test_vim9_func.vim 2020-10-12
22:07:09.635378856 +0200
--- src/testdir/test_vim9_func.vim 2020-10-13 18:36:45.680789197 +0200
***************
*** 13,22 ****
call SomeFunc()->assert_equal('yes')
endfunc
! def Test_compiling_error()
! # use a terminal to see the whole error message
CheckRunVimInTerminal
var lines =<< trim END
vim9script
def Fails()
--- 13,26 ----
call SomeFunc()->assert_equal('yes')
endfunc
! 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()
*** ../vim-8.2.1840/src/version.c 2020-10-12 22:07:09.635378856 +0200
--- src/version.c 2020-10-13 18:37:48.580541504 +0200
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 1841,
/**/
--
hundred-and-one symptoms of being an internet addict:
83. Batteries in the TV remote now last for months.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202010131638.09DGcjfI378720%40masaka.moolenaar.net.