aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-11-22 07:11:24 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-11-22 07:11:50 +0800
commit5836c89ed0506748458e495b2751789e81057519 (patch)
tree16af5b94852ea5bf8b7b96d080a768f859ee2e2b
parentef5dfe6c652473a8982b93bceebb470c1cee813e (diff)
downloadrneovim-5836c89ed0506748458e495b2751789e81057519.tar.gz
rneovim-5836c89ed0506748458e495b2751789e81057519.tar.bz2
rneovim-5836c89ed0506748458e495b2751789e81057519.zip
vim-patch:8.2.2479: set/getbufline test fails without the job feature
Problem: set/getbufline test fails without the job feature. Solution: Check whether the job feature is supported. (Dominique Pellé, closes vim/vim#7790) https://github.com/vim/vim/commit/00385114dbd6a3d59516baa02e1ea86a1e7ee70e Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r--src/nvim/testdir/test_bufline.vim12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/nvim/testdir/test_bufline.vim b/src/nvim/testdir/test_bufline.vim
index 0553774819..9c4e48734a 100644
--- a/src/nvim/testdir/test_bufline.vim
+++ b/src/nvim/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