# HG changeset patch # User Bram Moolenaar # Date 1604751303 -3600 # Node ID b129f28b0e356486ba43776ba622e0e53a95a668 # Parent 1cdaabe8a50549b7e8b4a5f48472f8f8f679a2e3 patch 8.2.1965: Vim9: tests fail without the channel feature Commit: https://github.com/vim/vim/commit/46f479c756c0255e3b6d473590c1857678eff5c6 Author: Bram Moolenaar Date: Sat Nov 7 13:09:18 2020 +0100 patch 8.2.1965: Vim9: tests fail without the channel feature Problem: Vim9: tests fail without the channel feature. Solution: Check if the channel feature is present. (Dominique Pell?, closes 7270) 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 @@ -1292,26 +1292,26 @@ func Test_expr5_fails() call CheckDefFailure(["var x = '1' ..'2'"], msg, 1) call CheckDefFailure(["var x = '1'.. '2'"], msg, 1) - call CheckDefFailure(["var x = 0z1122 + 33"], 'E1051', 1) - call CheckDefFailure(["var x = 0z1122 + [3]"], 'E1051', 1) - call CheckDefFailure(["var x = 0z1122 + 'asd'"], 'E1051', 1) - call CheckDefFailure(["var x = 33 + 0z1122"], 'E1051', 1) - call CheckDefFailure(["var x = [3] + 0z1122"], 'E1051', 1) - call CheckDefFailure(["var x = 'asdf' + 0z1122"], 'E1051', 1) - call CheckDefFailure(["var x = 6 + xxx"], 'E1001', 1) + call CheckDefFailure(["var x = 0z1122 + 33"], 'E1051:', 1) + call CheckDefFailure(["var x = 0z1122 + [3]"], 'E1051:', 1) + call CheckDefFailure(["var x = 0z1122 + 'asd'"], 'E1051:', 1) + call CheckDefFailure(["var x = 33 + 0z1122"], 'E1051:', 1) + call CheckDefFailure(["var x = [3] + 0z1122"], 'E1051:', 1) + call CheckDefFailure(["var x = 'asdf' + 0z1122"], 'E1051:', 1) + call CheckDefFailure(["var x = 6 + xxx"], 'E1001:', 1) - call CheckDefFailure(["var x = 'a' .. [1]"], 'E1105', 1) - call CheckDefFailure(["var x = 'a' .. #{a: 1}"], 'E1105', 1) - call CheckDefFailure(["var x = 'a' .. test_void()"], 'E1105', 1) - call CheckDefFailure(["var x = 'a' .. 0z32"], 'E1105', 1) - call CheckDefFailure(["var x = 'a' .. function('len')"], 'E1105', 1) - call CheckDefFailure(["var x = 'a' .. function('len', ['a'])"], 'E1105', 1) + call CheckDefFailure(["var x = 'a' .. [1]"], 'E1105:', 1) + call CheckDefFailure(["var x = 'a' .. #{a: 1}"], 'E1105:', 1) + call CheckDefFailure(["var x = 'a' .. test_void()"], 'E1105:', 1) + call CheckDefFailure(["var x = 'a' .. 0z32"], 'E1105:', 1) + call CheckDefFailure(["var x = 'a' .. function('len')"], 'E1105:', 1) + call CheckDefFailure(["var x = 'a' .. function('len', ['a'])"], 'E1105:', 1) endfunc func Test_expr5_fails_channel() CheckFeature channel - call CheckDefFailure(["var x = 'a' .. test_null_job()"], 'E1105', 1) - call CheckDefFailure(["var x = 'a' .. test_null_channel()"], 'E1105', 1) + call CheckDefFailure(["var x = 'a' .. test_null_job()"], 'E1105:', 1) + call CheckDefFailure(["var x = 'a' .. test_null_channel()"], 'E1105:', 1) endfunc " test multiply, divide, modulo @@ -1352,7 +1352,7 @@ def Test_expr6() * yf[0]) endif - CheckDefFailure(["var x = 6 * xxx"], 'E1001', 1) + CheckDefFailure(["var x = 6 * xxx"], 'E1001:', 1) enddef def Test_expr6_vim9script() @@ -1757,7 +1757,11 @@ def Test_expr7_list_vim9script() enddef var list = [Failing] END - CheckScriptFailure(lines, 'E119:', 1) + if has('channel') + CheckScriptFailure(lines, 'E119:', 1) + else + CheckScriptFailure(lines, 'E117:', 1) + endif enddef def LambdaWithComments(): func @@ -2028,7 +2032,11 @@ def Test_expr7_dict_vim9script() enddef var dict = #{name: Failing} END - CheckScriptFailure(lines, 'E119:', 1) + if has('channel') + CheckScriptFailure(lines, 'E119:', 1) + else + CheckScriptFailure(lines, 'E117:', 1) + endif enddef let g:oneString = 'one' 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 */ /**/ + 1965, +/**/ 1964, /**/ 1963,