diff src/testdir/test_partial.vim @ 8865:be36707a661a v7.4.1720

commit https://github.com/vim/vim/commit/9e4043757cd2fc18d071fdd98abf297d74878943 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Apr 8 17:25:19 2016 +0200 patch 7.4.1720 Problem: Tests fail without the job feature. Solution: Skip tests when the job feature is not present.
author Christian Brabandt <cb@256bit.org>
date Fri, 08 Apr 2016 17:30:06 +0200
parents e1b84109506a
children 2242a5766417
line wrap: on
line diff
--- a/src/testdir/test_partial.vim
+++ b/src/testdir/test_partial.vim
@@ -243,13 +243,17 @@ func Ignored(job1, job2, status)
 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