Commit: patch 9.1.1901: tests: test_vim9_generics fails without job feature

0 views
Skip to first unread message

Christian Brabandt

unread,
Nov 13, 2025, 7:26:38 AM (10 days ago) Nov 13
to vim...@googlegroups.com
patch 9.1.1901: tests: test_vim9_generics fails without job feature

Commit: https://github.com/vim/vim/commit/aa9862a5b0e68581b07197f9c21b1441ab62a290
Author: Christian Brabandt <c...@256bit.org>
Date: Sun Nov 9 19:39:22 2025 +0000

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 <c...@256bit.org>

diff --git a/src/testdir/test_vim9_generics.vim b/src/testdir/test_vim9_generics.vim
index 07648a332..48b31b043 100644
--- a/src/testdir/test_vim9_generics.vim
+++ b/src/testdir/test_vim9_generics.vim
@@ -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>')
- Fn<job>(test_null_job(), 'job')
- Fn<channel>(test_null_channel(), 'channel')
+ 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)
diff --git a/src/version.c b/src/version.c
index 78fb7bea1..df2c7f050 100644
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1901,
/**/
1900,
/**/
Reply all
Reply to author
Forward
0 new messages