diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-02 19:12:08 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-02 19:12:08 +0200 |
commit | 2c869deeb7658b6b02e525ff9412fc4a0c968688 (patch) | |
tree | d0eae29ea5c01411332572abf941eb6712e1490c | |
parent | aeea72151c31d686bcbb7b06d895006d7363585c (diff) | |
download | vim-git-2c869deeb7658b6b02e525ff9412fc4a0c968688.tar.gz |
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.vim | 10 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/testdir/test_vim9_script.vim b/src/testdir/test_vim9_script.vim index c5405a2dc..8d36c81ad 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 bb11730be..b1a10aaeb 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, |