forked from aniani/vim
patch 9.0.0226: job_start() test may fail under valgrind
Problem: job_start() test may fail under valgrind. Solution: Wait until the job is running.
This commit is contained in:
parent
91c7cbfe31
commit
9e043181ad
@ -528,6 +528,7 @@ def Test_ch_getbufnr()
|
||||
v9.CheckDefAndScriptFailure(['ch_getbufnr(test_null_channel(), 1)'], ['E1013: Argument 2: type mismatch, expected string but got number', 'E1174: String required for argument 2'])
|
||||
# test empty string argument for ch_getbufnr()
|
||||
var job: job = job_start(&shell)
|
||||
g:WaitForAssert(() => assert_equal('run', job_status(job)))
|
||||
job->ch_getbufnr('')->assert_equal(-1)
|
||||
job_stop(job)
|
||||
endif
|
||||
|
@ -731,6 +731,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
226,
|
||||
/**/
|
||||
225,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user