mirror of
https://github.com/vim/vim.git
synced 2025-10-04 05:25:06 -04:00
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 #8063)
This commit is contained in:
@@ -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
|
||||
|
@@ -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'
|
||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
2715,
|
||||
/**/
|
||||
2714,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user