diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-02-07 14:31:06 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-02-07 14:31:06 +0100 |
commit | 00385114dbd6a3d59516baa02e1ea86a1e7ee70e (patch) | |
tree | b3e0ff3ac5ac3422f36207a5d65c79488057dd06 /src/testdir | |
parent | 0dc5f603e9b86da9fe5798c231d8d6170501516e (diff) |
patch 8.2.2479: set/getbufline test fails without the job featurev8.2.2479
Problem: set/getbufline test fails without the job feature.
Solution: Check whether the job feature is supported. (Dominique Pellé,
closes #7790)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_bufline.vim | 12 | ||||
-rw-r--r-- | src/testdir/test_vim9_builtin.vim | 12 |
2 files changed, 14 insertions, 10 deletions
diff --git a/src/testdir/test_bufline.vim b/src/testdir/test_bufline.vim index b2de198ef0..5df5288184 100644 --- a/src/testdir/test_bufline.vim +++ b/src/testdir/test_bufline.vim @@ -40,11 +40,13 @@ func Test_setbufline_getbufline() call assert_equal([], getbufline(b, 6)) call assert_equal([], getbufline(b, 2, 1)) - call setbufline(b, 2, [function('eval'), #{key: 123}, test_null_job()]) - call assert_equal(["function('eval')", - \ "{'key': 123}", - \ "no process"], - \ getbufline(b, 2, 4)) + if has('job') + call setbufline(b, 2, [function('eval'), #{key: 123}, test_null_job()]) + call assert_equal(["function('eval')", + \ "{'key': 123}", + \ "no process"], + \ getbufline(b, 2, 4)) + endif exe "bwipe! " . b endfunc 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 |