0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 7.4.1856

Problem:    failing job test fails on MS-Windows.
Solution:   Expect "fail" status instead of "dead".
This commit is contained in:
Bram Moolenaar
2016-05-28 22:47:12 +02:00
parent 655da31a18
commit 324a78f3b6
2 changed files with 9 additions and 2 deletions

View File

@@ -254,12 +254,17 @@ func Test_job_start_fails()
if has('job') if has('job')
let job = job_start('axdfxsdf') let job = job_start('axdfxsdf')
for i in range(100) for i in range(100)
if job_status(job) == 'dead' let status = job_status(job)
if status == 'dead' || status == 'fail'
break break
endif endif
sleep 10m sleep 10m
endfor endfor
if has('unix')
call assert_equal('dead', job_status(job)) call assert_equal('dead', job_status(job))
else
call assert_equal('fail', job_status(job))
endif
unlet job unlet job
endif endif
endfunc endfunc

View File

@@ -753,6 +753,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 */
/**/
1856,
/**/ /**/
1855, 1855,
/**/ /**/