mirror of
https://github.com/zoriya/vim.git
synced 2026-06-04 12:27:58 +00:00
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 #7790)
This commit is contained in:
@@ -40,11 +40,13 @@ func Test_setbufline_getbufline()
|
|||||||
call assert_equal([], getbufline(b, 6))
|
call assert_equal([], getbufline(b, 6))
|
||||||
call assert_equal([], getbufline(b, 2, 1))
|
call assert_equal([], getbufline(b, 2, 1))
|
||||||
|
|
||||||
call setbufline(b, 2, [function('eval'), #{key: 123}, test_null_job()])
|
if has('job')
|
||||||
call assert_equal(["function('eval')",
|
call setbufline(b, 2, [function('eval'), #{key: 123}, test_null_job()])
|
||||||
\ "{'key': 123}",
|
call assert_equal(["function('eval')",
|
||||||
\ "no process"],
|
\ "{'key': 123}",
|
||||||
\ getbufline(b, 2, 4))
|
\ "no process"],
|
||||||
|
\ getbufline(b, 2, 4))
|
||||||
|
endif
|
||||||
exe "bwipe! " . b
|
exe "bwipe! " . b
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
|||||||
@@ -824,11 +824,13 @@ def Test_set_get_bufline()
|
|||||||
assert_equal([], getbufline(b, 6))
|
assert_equal([], getbufline(b, 6))
|
||||||
assert_equal([], getbufline(b, 2, 1))
|
assert_equal([], getbufline(b, 2, 1))
|
||||||
|
|
||||||
setbufline(b, 2, [function('eval'), {key: 123}, test_null_job()])
|
if has('job')
|
||||||
assert_equal(["function('eval')",
|
setbufline(b, 2, [function('eval'), {key: 123}, test_null_job()])
|
||||||
"{'key': 123}",
|
assert_equal(["function('eval')",
|
||||||
"no process"],
|
"{'key': 123}",
|
||||||
getbufline(b, 2, 4))
|
"no process"],
|
||||||
|
getbufline(b, 2, 4))
|
||||||
|
endif
|
||||||
|
|
||||||
exe 'bwipe! ' .. b
|
exe 'bwipe! ' .. b
|
||||||
END
|
END
|
||||||
|
|||||||
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2479,
|
||||||
/**/
|
/**/
|
||||||
2478,
|
2478,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user