]> granicus.if.org Git - vim/commitdiff
patch 8.2.3736: test fails without the channel feature v8.2.3736
authorBram Moolenaar <Bram@vim.org>
Sat, 4 Dec 2021 15:00:23 +0000 (15:00 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 4 Dec 2021 15:00:23 +0000 (15:00 +0000)
Problem:    Test fails without the channel feature. (Dominique PellĂ©)
Solution:   Source the check.vim script. (closes #9277)

src/testdir/test_vim9_fails.vim
src/version.c

index 216ef0b286f853073ec1f152df9d6ae43576eda2..5c3cab545e42ab0d950b2ccd1ddb9d061e54df53 100644 (file)
@@ -1,8 +1,12 @@
 " Test for Vim9 script with failures, causing memory leaks to be reported.
 " The leaks happen after a fork() and can be ignored.
 
+source check.vim
+
 def Test_assignment()
-  if has('channel')
+  if !has('channel')
+    CheckFeature channel
+  else
     var chan1: channel
     var job1: job
     var job2: job = job_start('willfail')
index 55d233170c05317eabbe71418db7cbefa7950c4a..02743239f1756d587e767645d41d2a7230346525 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3736,
 /**/
     3735,
 /**/