]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1901: tests: test_vim9_generics fails without job feature v9.1.1901
authorChristian Brabandt <cb@256bit.org>
Sun, 9 Nov 2025 19:39:22 +0000 (19:39 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 9 Nov 2025 19:39:22 +0000 (19:39 +0000)
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>
src/testdir/test_vim9_generics.vim
src/version.c

index 07648a3326e4ba85704e3fe6224a1c192826bda3..48b31b043c871f3a31df32beb1702453afa2fda9 100644 (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>')
-    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)
index 78fb7bea175b79171dfaa45ddabe5b1d7375bf70..df2c7f0508878b5c9cf7208a64988ead978ba447 100644 (file)
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1901,
 /**/
     1900,
 /**/