aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-15 13:08:28 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-04-15 13:10:27 +0800
commitd372eedcfa8cae3b20853bfb1489ec8beb825e94 (patch)
tree171479d2e4685437593e94a0b690a1592427fffc
parent0eddf5ad2fc3a5d5dd4be09a75aed198337ce032 (diff)
downloadrneovim-d372eedcfa8cae3b20853bfb1489ec8beb825e94.tar.gz
rneovim-d372eedcfa8cae3b20853bfb1489ec8beb825e94.tar.bz2
rneovim-d372eedcfa8cae3b20853bfb1489ec8beb825e94.zip
vim-patch:8.2.0102: messages test fails in small version
Problem: Messages test fails in small version. Solution: Only use test_null_job() when available. https://github.com/vim/vim/commit/da292b07afb7ea5ec9f4b43a7326551922e29f3a Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r--test/old/testdir/test_messages.vim17
1 files changed, 10 insertions, 7 deletions
diff --git a/test/old/testdir/test_messages.vim b/test/old/testdir/test_messages.vim
index 1afab6d359..ff4cf2c386 100644
--- a/test/old/testdir/test_messages.vim
+++ b/test/old/testdir/test_messages.vim
@@ -404,13 +404,16 @@ func Test_ask_yesno()
endfunc
func Test_null()
- echom test_null_list()
- echom test_null_dict()
- echom test_null_blob()
- echom test_null_job()
- echom test_null_string()
- echom test_null_channel()
- echom test_null_partial()
+ echom v:_null_list
+ echom v:_null_dict
+ echom v:_null_blob
+ echom v:_null_string
+ " Nvim doesn't have NULL partials
+ " echom test_null_partial()
+ if has('job')
+ echom test_null_job()
+ echom test_null_channel()
+ endif
endfunc
func Test_mapping_at_hit_return_prompt()