]> granicus.if.org Git - vim/commitdiff
patch 7.4.1720 v7.4.1720
authorBram Moolenaar <Bram@vim.org>
Fri, 8 Apr 2016 15:25:19 +0000 (17:25 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 8 Apr 2016 15:25:19 +0000 (17:25 +0200)
Problem:    Tests fail without the job feature.
Solution:   Skip tests when the job feature is not present.

src/testdir/test_partial.vim
src/version.c

index 404bb748db65aae559751389e2376f7096b789a3..5f4a48faf81b98aaec3af2d2019a03c5ff09cb4a 100644 (file)
@@ -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
index dd50f983d9922ac1425fc888f85445197eedd232..dc51874dc19f71cd5ea6221b83eed52e46f132a2 100644 (file)
@@ -748,6 +748,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1720,
 /**/
     1719,
 /**/