]> granicus.if.org Git - vim/commitdiff
patch 8.2.0300: Vim9: expression test fails without channel support v8.2.0300
authorBram Moolenaar <Bram@vim.org>
Sat, 22 Feb 2020 19:33:08 +0000 (20:33 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 22 Feb 2020 19:33:08 +0000 (20:33 +0100)
Problem:    Vim9: expression test fails without channel support.
Solution:   Add has('channel') check.

src/testdir/test_vim9_expr.vim
src/version.c

index a5b6e44d69972dba6bec4ddde33703bb9f5f6805..fb7d39f41e8c68be6ec28469983fb8f0f8fcaf04 100644 (file)
@@ -773,8 +773,10 @@ def Test_expr7_not()
   assert_equal(true, !{})
   assert_equal(false, !{'yes': 'no'})
 
-  assert_equal(true, !test_null_job())
-  assert_equal(true, !test_null_channel())
+  if has('channel')
+    assert_equal(true, !test_null_job())
+    assert_equal(true, !test_null_channel())
+  endif
 
   assert_equal(true, !test_null_blob())
   assert_equal(true, !0z)
index 95a098bea19f4ab098d86d03e50dcbb2e79932c0..16bf1e1f98a8fbc4d732e66fab019148020c04aa 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    300,
 /**/
     299,
 /**/