]> granicus.if.org Git - vim/commitdiff
patch 8.2.2715: Vim9: tests fail without the channel feature v8.2.2715
authorBram Moolenaar <Bram@vim.org>
Mon, 5 Apr 2021 11:36:34 +0000 (13:36 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 5 Apr 2021 11:36:34 +0000 (13:36 +0200)
Problem:    Vim9: tests fail without the channel feature. (Dominique PellĂ©)
Solution:   Check for the channel feature. (closes #8063)

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

index 8f112174e51756ccab64f3ba93addb89de797b45..f537eef82c3d343db3ba95c338c23b251117e59c 100644 (file)
@@ -209,6 +209,9 @@ def Test_call_call()
 enddef
 
 def Test_ch_logfile()
+  if !has('channel')
+    CheckFeature channel
+  endif
   assert_fails('ch_logfile(true)', 'E1174')
   assert_fails('ch_logfile("foo", true)', 'E1174')
 enddef
index f5a0cd5609f9fc900e81d82e2cfe7f23c835144b..6bee982ea976c0dc94acd625ca0210cd7192e7dd 100644 (file)
@@ -2340,7 +2340,7 @@ def Test_expr7_dict_vim9script()
   if has('channel')
     CheckDefAndScriptFailure(lines, 'E119:', 0)
   else
-    CheckDefAndScriptFailure(lines, 'E117:', 1)
+    CheckDefAndScriptFailure(lines, 'E117:', 0)
   endif
 enddef
 
@@ -2590,6 +2590,7 @@ def Test_expr7_register()
   CheckDefAndScriptFailure2(["@. = 'yes'"], 'E354:', 'E488:', 1)
 enddef
 
+" This is slow when run under valgrind.
 def Test_expr7_namespace()
   var lines =<< trim END
       g:some_var = 'some'
index 2d3368dab4e0218c3b200ebc418208618049e6a9..86b0593dd66f9de6f8e105f24da50e2fbaa22109 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2715,
 /**/
     2714,
 /**/