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:
@@ -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'])
|
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()
|
# test empty string argument for ch_getbufnr()
|
||||||
var job: job = job_start(&shell)
|
var job: job = job_start(&shell)
|
||||||
|
g:WaitForAssert(() => assert_equal('run', job_status(job)))
|
||||||
job->ch_getbufnr('')->assert_equal(-1)
|
job->ch_getbufnr('')->assert_equal(-1)
|
||||||
job_stop(job)
|
job_stop(job)
|
||||||
endif
|
endif
|
||||||
|
@@ -731,6 +731,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 */
|
||||||
|
/**/
|
||||||
|
226,
|
||||||
/**/
|
/**/
|
||||||
225,
|
225,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user