mirror of
https://github.com/vim/vim.git
synced 2025-10-06 05:44:14 -04:00
patch 7.4.2198
Problem: Test alot sometimes fails under valgrind. (Dominique Pelle) Solution: Avoid passing a callback with the wrong number of arguments.
This commit is contained in:
@@ -260,22 +260,25 @@ func Test_cyclic_dict_arg()
|
|||||||
unlet Pt
|
unlet Pt
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Ignored(job1, job2, status)
|
func Ignored3(job1, job2, status)
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_cycle_partial_job()
|
func Test_cycle_partial_job()
|
||||||
if has('job')
|
if has('job')
|
||||||
let job = job_start('echo')
|
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
|
unlet job
|
||||||
endif
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func Ignored2(job, status)
|
||||||
|
endfunc
|
||||||
|
|
||||||
func Test_ref_job_partial_dict()
|
func Test_ref_job_partial_dict()
|
||||||
if has('job')
|
if has('job')
|
||||||
let g:ref_job = job_start('echo')
|
let g:ref_job = job_start('echo')
|
||||||
let d = {'a': 'b'}
|
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
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
@@ -763,6 +763,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2198,
|
||||||
/**/
|
/**/
|
||||||
2197,
|
2197,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user