summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-02 19:12:08 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-02 19:12:08 +0200
commit2c869deeb7658b6b02e525ff9412fc4a0c968688 (patch)
treed0eae29ea5c01411332572abf941eb6712e1490c
parentaeea72151c31d686bcbb7b06d895006d7363585c (diff)
patch 8.2.0501: Vim9: script test fails when channel feature is missingv8.2.0501
Problem: Vim9: script test fails when channel feature is missing. Solution: Add a has() condition.
-rw-r--r--src/testdir/test_vim9_script.vim10
-rw-r--r--src/version.c2
2 files changed, 8 insertions, 4 deletions
diff --git a/src/testdir/test_vim9_script.vim b/src/testdir/test_vim9_script.vim
index c5405a2dc4..8d36c81ad7 100644
--- a/src/testdir/test_vim9_script.vim
+++ b/src/testdir/test_vim9_script.vim
@@ -164,11 +164,13 @@ def Test_assignment()
let thedict: dict<any>
assert_equal({}, thedict)
- let thejob: job
- assert_equal(test_null_job(), thejob)
+ if has('channel')
+ let thejob: job
+ assert_equal(test_null_job(), thejob)
- let thechannel: channel
- assert_equal(test_null_channel(), thechannel)
+ let thechannel: channel
+ assert_equal(test_null_channel(), thechannel)
+ endif
enddef
func Test_assignment_failure()
diff --git a/src/version.c b/src/version.c
index bb11730bec..b1a10aaebd 100644
--- a/src/version.c
+++ b/src/version.c
@@ -739,6 +739,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 501,
+/**/
500,
/**/
499,