Mercurial > vim
changeset 24349:21c72f782ae1 v8.2.2715
patch 8.2.2715: Vim9: tests fail without the channel feature
Commit: https://github.com/vim/vim/commit/886e5e737d0b2eea755c415a86997ca3b7fe5349
Author: Bram Moolenaar <Bram@vim.org>
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 05 Apr 2021 13:45:04 +0200 |
parents | f61edf8cfa6e |
children | 4c571ac0748e |
files | src/testdir/test_vim9_builtin.vim src/testdir/test_vim9_expr.vim src/version.c |
diffstat | 3 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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'