From d372eedcfa8cae3b20853bfb1489ec8beb825e94 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 15 Apr 2023 13:08:28 +0800 Subject: 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 --- test/old/testdir/test_messages.vim | 17 ++++++++++------- 1 file 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() -- cgit