Skip to content

Commit aa9862a

Browse files
committed
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 <[email protected]>
1 parent 5427465 commit aa9862a

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/testdir/test_vim9_generics.vim

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,12 @@ def Test_generic_func_typename()
417417
Fn<list<list<blob>>>([[0z10, 0z20], [0z30]], 'list<list<blob>>')
418418
Fn<tuple<number, string>>((1, 'abc'), 'tuple<number, string>')
419419
Fn<dict<string>>({a: 'a', b: 'b'}, 'dict<string>')
420-
Fn<job>(test_null_job(), 'job')
421-
Fn<channel>(test_null_channel(), 'channel')
420+
if has('job')
421+
Fn<job>(test_null_job(), 'job')
422+
endif
423+
if has('channel')
424+
Fn<channel>(test_null_channel(), 'channel')
425+
endif
422426
Fn<func>(function('Foo'), 'func(list<string>, dict<number>): list<blob>')
423427
END
424428
v9.CheckSourceSuccess(lines)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,8 @@ static char *(features[]) =
729729

730730
static int included_patches[] =
731731
{ /* Add new patch number below this line */
732+
/**/
733+
1901,
732734
/**/
733735
1900,
734736
/**/

0 commit comments

Comments
 (0)