# HG changeset patch # User Bram Moolenaar # Date 1617623104 -7200 # Node ID 21c72f782ae1b5e3882174eaa86e9e5374d13017 # Parent f61edf8cfa6e91b04ed00423c43e16f839bafb31 patch 8.2.2715: Vim9: tests fail without the channel feature Commit: https://github.com/vim/vim/commit/886e5e737d0b2eea755c415a86997ca3b7fe5349 Author: Bram Moolenaar Date: Mon Apr 5 13:36:34 2021 +0200 patch 8.2.2715: Vim9: tests fail without the channel feature Problem: Vim9: tests fail without the channel feature. (Dominique Pell?) Solution: Check for the channel feature. (closes https://github.com/vim/vim/issues/8063) diff --git a/src/testdir/test_vim9_builtin.vim b/src/testdir/test_vim9_builtin.vim --- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -209,6 +209,9 @@ def Test_call_call() 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 diff --git a/src/testdir/test_vim9_expr.vim b/src/testdir/test_vim9_expr.vim --- a/src/testdir/test_vim9_expr.vim +++ b/src/testdir/test_vim9_expr.vim @@ -2340,7 +2340,7 @@ def Test_expr7_dict_vim9script() if has('channel') CheckDefAndScriptFailure(lines, 'E119:', 0) else - CheckDefAndScriptFailure(lines, 'E117:', 1) + CheckDefAndScriptFailure(lines, 'E117:', 0) endif enddef @@ -2590,6 +2590,7 @@ def Test_expr7_register() 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' diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2715, +/**/ 2714, /**/ 2713,