endfunc
func Test_cycle_partial_job()
- let job = job_start('echo')
- call job_setoptions(job, {'exit_cb': function('Ignored', [job])})
- unlet job
+ if has('job')
+ let job = job_start('echo')
+ call job_setoptions(job, {'exit_cb': function('Ignored', [job])})
+ unlet job
+ endif
endfunc
func Test_ref_job_partial_dict()
- let g:ref_job = job_start('echo')
- let d = {'a': 'b'}
- call job_setoptions(g:ref_job, {'exit_cb': function('string', [], d)})
+ if has('job')
+ let g:ref_job = job_start('echo')
+ let d = {'a': 'b'}
+ call job_setoptions(g:ref_job, {'exit_cb': function('string', [], d)})
+ endif
endfunc