To: vim_dev@googlegroups.com Subject: Patch 8.2.2715 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2715 Problem: Vim9: tests fail without the channel feature. (Dominique Pellé) Solution: Check for the channel feature. (closes #8063) Files: src/testdir/test_vim9_builtin.vim, src/testdir/test_vim9_expr.vim *** ../vim-8.2.2714/src/testdir/test_vim9_builtin.vim 2021-03-28 15:46:11.547785253 +0200 --- src/testdir/test_vim9_builtin.vim 2021-04-05 13:32:44.675939853 +0200 *************** *** 209,214 **** --- 209,217 ---- enddef def Test_ch_logfile() + if !has('channel') + CheckFeature channel + endif assert_fails('ch_logfile(true)', 'E1174') assert_fails('ch_logfile("foo", true)', 'E1174') enddef *** ../vim-8.2.2714/src/testdir/test_vim9_expr.vim 2021-04-04 20:49:46.626430253 +0200 --- src/testdir/test_vim9_expr.vim 2021-04-05 13:34:40.607648975 +0200 *************** *** 2340,2346 **** if has('channel') CheckDefAndScriptFailure(lines, 'E119:', 0) else ! CheckDefAndScriptFailure(lines, 'E117:', 1) endif enddef --- 2340,2346 ---- if has('channel') CheckDefAndScriptFailure(lines, 'E119:', 0) else ! CheckDefAndScriptFailure(lines, 'E117:', 0) endif enddef *************** *** 2590,2595 **** --- 2590,2596 ---- CheckDefAndScriptFailure2(["@. = 'yes'"], 'E354:', 'E488:', 1) enddef + " This is slow when run under valgrind. def Test_expr7_namespace() var lines =<< trim END g:some_var = 'some' *** ../vim-8.2.2714/src/version.c 2021-04-05 13:09:45.082815203 +0200 --- src/version.c 2021-04-05 13:35:36.043508670 +0200 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2715, /**/ -- I'm trying to be an optimist, but I don't think it'll work. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///