0
0
mirror of https://github.com/vim/vim.git synced 2025-11-13 22:54:27 -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:
Christian Brabandt
2025-11-09 19:39:22 +00:00
parent 542746521f
commit aa9862a5b0
2 changed files with 8 additions and 2 deletions

View File

@@ -417,8 +417,12 @@ def Test_generic_func_typename()
Fn<list<list<blob>>>([[0z10, 0z20], [0z30]], 'list<list<blob>>')
Fn<tuple<number, string>>((1, 'abc'), 'tuple<number, string>')
Fn<dict<string>>({a: 'a', b: 'b'}, 'dict<string>')
if has('job')
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>')
END
v9.CheckSourceSuccess(lines)

View File

@@ -729,6 +729,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1901,
/**/
1900,
/**/