forked from aniani/vim
patch 7.4.1720
Problem: Tests fail without the job feature. Solution: Skip tests when the job feature is not present.
This commit is contained in:
@@ -243,13 +243,17 @@ func Ignored(job1, job2, status)
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_cycle_partial_job()
|
func Test_cycle_partial_job()
|
||||||
|
if has('job')
|
||||||
let job = job_start('echo')
|
let job = job_start('echo')
|
||||||
call job_setoptions(job, {'exit_cb': function('Ignored', [job])})
|
call job_setoptions(job, {'exit_cb': function('Ignored', [job])})
|
||||||
unlet job
|
unlet job
|
||||||
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_ref_job_partial_dict()
|
func Test_ref_job_partial_dict()
|
||||||
|
if has('job')
|
||||||
let g:ref_job = job_start('echo')
|
let g:ref_job = job_start('echo')
|
||||||
let d = {'a': 'b'}
|
let d = {'a': 'b'}
|
||||||
call job_setoptions(g:ref_job, {'exit_cb': function('string', [], d)})
|
call job_setoptions(g:ref_job, {'exit_cb': function('string', [], d)})
|
||||||
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
|||||||
@@ -748,6 +748,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 */
|
||||||
|
/**/
|
||||||
|
1720,
|
||||||
/**/
|
/**/
|
||||||
1719,
|
1719,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user