Problem: set/getbufline test fails without the job feature.
Solution: Check whether the job feature is supported. (Dominique Pellé,
closes #7790)
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
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
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2479,
/**/
2478,
/**/