1
0
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:
Bram Moolenaar 2022-08-18 15:22:09 +01:00
parent 91c7cbfe31
commit 9e043181ad
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -731,6 +731,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
226,
/**/
225,
/**/