0
0
mirror of https://github.com/vim/vim.git synced 2025-10-04 05:25:06 -04:00

patch 8.2.0501: Vim9: script test fails when channel feature is missing

Problem:    Vim9: script test fails when channel feature is missing.
Solution:   Add a has() condition.
This commit is contained in:
Bram Moolenaar
2020-04-02 19:12:08 +02:00
parent aeea72151c
commit 2c869deeb7
2 changed files with 8 additions and 4 deletions

View File

@@ -164,11 +164,13 @@ def Test_assignment()
let thedict: dict<any> let thedict: dict<any>
assert_equal({}, thedict) assert_equal({}, thedict)
if has('channel')
let thejob: job let thejob: job
assert_equal(test_null_job(), thejob) assert_equal(test_null_job(), thejob)
let thechannel: channel let thechannel: channel
assert_equal(test_null_channel(), thechannel) assert_equal(test_null_channel(), thechannel)
endif
enddef enddef
func Test_assignment_failure() func Test_assignment_failure()

View File

@@ -738,6 +738,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
501,
/**/ /**/
500, 500,
/**/ /**/