mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.1609: Vim9: test fails when build without +channel
Problem: Vim9: test fails when build without +channel. Solution: Add check for +channel. (closes #6879)
This commit is contained in:
parent
15183b41c4
commit
7918238528
@ -1105,16 +1105,23 @@ def Test_expr5_vim9script()
|
|||||||
echo 'a' .. function('len')
|
echo 'a' .. function('len')
|
||||||
END
|
END
|
||||||
CheckScriptFailure(lines, 'E729:', 2)
|
CheckScriptFailure(lines, 'E729:', 2)
|
||||||
lines =<< trim END
|
enddef
|
||||||
vim9script
|
|
||||||
echo 'a' .. test_null_job()
|
def Test_expr5_vim9script_channel()
|
||||||
END
|
if !has('channel')
|
||||||
CheckScriptFailure(lines, 'E908:', 2)
|
MissingFeature 'float'
|
||||||
lines =<< trim END
|
else
|
||||||
vim9script
|
let lines =<< trim END
|
||||||
echo 'a' .. test_null_channel()
|
vim9script
|
||||||
END
|
echo 'a' .. test_null_job()
|
||||||
CheckScriptFailure(lines, 'E908:', 2)
|
END
|
||||||
|
CheckScriptFailure(lines, 'E908:', 2)
|
||||||
|
lines =<< trim END
|
||||||
|
vim9script
|
||||||
|
echo 'a' .. test_null_channel()
|
||||||
|
END
|
||||||
|
CheckScriptFailure(lines, 'E908:', 2)
|
||||||
|
endif
|
||||||
enddef
|
enddef
|
||||||
|
|
||||||
def Test_expr5_float()
|
def Test_expr5_float()
|
||||||
@ -1172,6 +1179,10 @@ func Test_expr5_fails()
|
|||||||
call CheckDefFailure(["let x = 'a' .. 0z32"], 'E1105', 1)
|
call CheckDefFailure(["let x = 'a' .. 0z32"], 'E1105', 1)
|
||||||
call CheckDefFailure(["let x = 'a' .. function('len')"], 'E1105', 1)
|
call CheckDefFailure(["let x = 'a' .. function('len')"], 'E1105', 1)
|
||||||
call CheckDefFailure(["let x = 'a' .. function('len', ['a'])"], 'E1105', 1)
|
call CheckDefFailure(["let x = 'a' .. function('len', ['a'])"], 'E1105', 1)
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func Test_expr5_fails_channel()
|
||||||
|
CheckFeature channel
|
||||||
call CheckDefFailure(["let x = 'a' .. test_null_job()"], 'E1105', 1)
|
call CheckDefFailure(["let x = 'a' .. test_null_job()"], 'E1105', 1)
|
||||||
call CheckDefFailure(["let x = 'a' .. test_null_channel()"], 'E1105', 1)
|
call CheckDefFailure(["let x = 'a' .. test_null_channel()"], 'E1105', 1)
|
||||||
endfunc
|
endfunc
|
||||||
|
@ -754,6 +754,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1609,
|
||||||
/**/
|
/**/
|
||||||
1608,
|
1608,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user