]> granicus.if.org Git - vim/commitdiff
patch 7.4.2198 v7.4.2198
authorBram Moolenaar <Bram@vim.org>
Thu, 11 Aug 2016 20:52:42 +0000 (22:52 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 11 Aug 2016 20:52:42 +0000 (22:52 +0200)
Problem:    Test alot sometimes fails under valgrind. (Dominique Pelle)
Solution:   Avoid passing a callback with the wrong number of arguments.

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

index 48c7697b478bdacc17b232384c370d0492157181..3e968dabcdf103e083bc6bf26c827ee04f221c3e 100644 (file)
@@ -260,22 +260,25 @@ func Test_cyclic_dict_arg()
   unlet Pt
 endfunc
 
-func Ignored(job1, job2, status)
+func Ignored3(job1, job2, status)
 endfunc
 
 func Test_cycle_partial_job()
   if has('job')
     let job = job_start('echo')
-    call job_setoptions(job, {'exit_cb': function('Ignored', [job])})
+    call job_setoptions(job, {'exit_cb': function('Ignored3', [job])})
     unlet job
   endif
 endfunc
 
+func Ignored2(job, status)
+endfunc
+
 func Test_ref_job_partial_dict()
   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)})
+    call job_setoptions(g:ref_job, {'exit_cb': function('Ignored2', [], d)})
   endif
 endfunc
 
index 5ba3eec7fccb44cdec8ee7b4dcfc8bc08b9796ed..4f96443ba4071759856b6142387a3b55b4882c49 100644 (file)
@@ -763,6 +763,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2198,
 /**/
     2197,
 /**/