diff options
author | Dominique Pelle <dominique.pelle@gmail.com> | 2021-07-03 19:27:37 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-03 19:27:37 +0200 |
commit | 74509239df107b04abe4f30ada12109629c85939 (patch) | |
tree | 3f74209ca0c5646a569d69c9fb6e05ee9427dc2f /src/testdir | |
parent | e28d9b3bd4de2c7288add83ec35dc001ba280617 (diff) |
patch 8.2.3092: Vim9: builtin function test fails without +channel featurev8.2.3092
Problem: Vim9: builtin function test fails without the +channel feature.
Solution: Check the +channel feature is supported. (Dominique Pellé,
closes #8507)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_vim9_builtin.vim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testdir/test_vim9_builtin.vim b/src/testdir/test_vim9_builtin.vim index 5a5b512d8c..38bd8271c8 100644 --- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -1344,8 +1344,10 @@ def Test_prevnonblank() enddef def Test_prompt_getprompt() - CheckDefFailure(['prompt_getprompt([])'], 'E1013: Argument 1: type mismatch, expected string but got list<unknown>') - assert_equal('', prompt_getprompt('NonExistingBuf')) + if has('channel') + CheckDefFailure(['prompt_getprompt([])'], 'E1013: Argument 1: type mismatch, expected string but got list<unknown>') + assert_equal('', prompt_getprompt('NonExistingBuf')) + endif enddef def Test_rand() |