From 00385114dbd6a3d59516baa02e1ea86a1e7ee70e Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 7 Feb 2021 14:31:06 +0100 Subject: patch 8.2.2479: set/getbufline test fails without the job feature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: set/getbufline test fails without the job feature. Solution: Check whether the job feature is supported. (Dominique Pellé, closes #7790) --- src/testdir/test_vim9_builtin.vim | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/testdir/test_vim9_builtin.vim') diff --git a/src/testdir/test_vim9_builtin.vim b/src/testdir/test_vim9_builtin.vim index 06839c0c51..eb36bd77a1 100644 --- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -824,11 +824,13 @@ def Test_set_get_bufline() assert_equal([], getbufline(b, 6)) assert_equal([], getbufline(b, 2, 1)) - setbufline(b, 2, [function('eval'), {key: 123}, test_null_job()]) - assert_equal(["function('eval')", - "{'key': 123}", - "no process"], - getbufline(b, 2, 4)) + if has('job') + setbufline(b, 2, [function('eval'), {key: 123}, test_null_job()]) + assert_equal(["function('eval')", + "{'key': 123}", + "no process"], + getbufline(b, 2, 4)) + endif exe 'bwipe! ' .. b END -- cgit v1.2.3