Mercurial > vim
changeset 9846:95ad2692dec0 v7.4.2198
commit https://github.com/vim/vim/commit/0e5d3a2940ead6c8ee3bacacea4153b647b67cca
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Aug 11 22:52:42 2016 +0200
patch 7.4.2198
Problem: Test alot sometimes fails under valgrind. (Dominique Pelle)
Solution: Avoid passing a callback with the wrong number of arguments.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 11 Aug 2016 23:00:08 +0200 |
parents | bc0c23856bc6 |
children | 9dd04cad0feb |
files | src/testdir/test_partial.vim src/version.c |
diffstat | 2 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_partial.vim +++ b/src/testdir/test_partial.vim @@ -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