mirror of
https://github.com/vim/vim.git
synced 2025-11-14 23:04:02 -05:00
patch 9.1.1901: tests: test_vim9_generics fails without job feature
Problem: tests: test_vim9_generics fails when built without the job or
channel feature (lazypingu)
Solution: Skip test if job/channel feature is not available
fixes: #18702
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -417,8 +417,12 @@ def Test_generic_func_typename()
|
|||||||
Fn<list<list<blob>>>([[0z10, 0z20], [0z30]], 'list<list<blob>>')
|
Fn<list<list<blob>>>([[0z10, 0z20], [0z30]], 'list<list<blob>>')
|
||||||
Fn<tuple<number, string>>((1, 'abc'), 'tuple<number, string>')
|
Fn<tuple<number, string>>((1, 'abc'), 'tuple<number, string>')
|
||||||
Fn<dict<string>>({a: 'a', b: 'b'}, 'dict<string>')
|
Fn<dict<string>>({a: 'a', b: 'b'}, 'dict<string>')
|
||||||
Fn<job>(test_null_job(), 'job')
|
if has('job')
|
||||||
Fn<channel>(test_null_channel(), 'channel')
|
Fn<job>(test_null_job(), 'job')
|
||||||
|
endif
|
||||||
|
if has('channel')
|
||||||
|
Fn<channel>(test_null_channel(), 'channel')
|
||||||
|
endif
|
||||||
Fn<func>(function('Foo'), 'func(list<string>, dict<number>): list<blob>')
|
Fn<func>(function('Foo'), 'func(list<string>, dict<number>): list<blob>')
|
||||||
END
|
END
|
||||||
v9.CheckSourceSuccess(lines)
|
v9.CheckSourceSuccess(lines)
|
||||||
|
|||||||
@@ -729,6 +729,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 */
|
||||||
|
/**/
|
||||||
|
1901,
|
||||||
/**/
|
/**/
|
||||||
1900,
|
1900,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user