1
0
forked from aniani/vim

patch 8.2.3715: Vim9: valgrind reports spurious problems for a test

Problem:    Vim9: valgrind reports spurious problems for a test.
Solution:   Move the test to the set that is known to fail.
This commit is contained in:
Bram Moolenaar
2021-12-01 12:41:31 +00:00
parent 7e5503c17a
commit f0e496a85a
3 changed files with 17 additions and 11 deletions

View File

@@ -1879,17 +1879,7 @@ def Test_job_info()
endif
enddef
def Test_job_info_return_type()
if !has('job')
CheckFeature job
else
job_start(&shell)
var jobs = job_info()
assert_equal('list<job>', typename(jobs))
assert_equal('dict<any>', typename(job_info(jobs[0])))
job_stop(jobs[0])
endif
enddef
" Test_job_info_return_type() is in test_vim9_fails.vim
def Test_job_setoptions()
if !has('job')

View File

@@ -8,3 +8,17 @@ def Test_assignment()
var job2: job = job_start('willfail')
endif
enddef
" Unclear why this test causes valgrind to report problems.
def Test_job_info_return_type()
if !has('job')
CheckFeature job
else
var job: job = job_start(&shell)
var jobs = job_info()
assert_equal('list<job>', typename(jobs))
assert_equal('dict<any>', typename(job_info(jobs[0])))
job_stop(job)
endif
enddef

View File

@@ -753,6 +753,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3715,
/**/
3714,
/**/