To: vim_dev@googlegroups.com Subject: Patch 7.4.2198 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.2198 Problem: Test alot sometimes fails under valgrind. (Dominique Pelle) Solution: Avoid passing a callback with the wrong number of arguments. Files: src/testdir/test_partial.vim *** ../vim-7.4.2197/src/testdir/test_partial.vim 2016-08-05 19:31:37.640426182 +0200 --- src/testdir/test_partial.vim 2016-08-11 22:46:37.495913590 +0200 *************** *** 260,281 **** unlet Pt endfunc ! func Ignored(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])}) unlet job endif 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)}) endif endfunc --- 260,284 ---- unlet Pt endfunc ! 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('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('Ignored2', [], d)}) endif endfunc *** ../vim-7.4.2197/src/version.c 2016-08-11 22:51:01.641495491 +0200 --- src/version.c 2016-08-11 22:51:55.917000426 +0200 *************** *** 765,766 **** --- 765,768 ---- { /* Add new patch number below this line */ + /**/ + 2198, /**/ -- hundred-and-one symptoms of being an internet addict: 6. You refuse to go to a vacation spot with no electricity and no phone lines. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///