To: vim_dev@googlegroups.com Subject: Patch 8.2.1841 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- 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 ///