From: Bram Moolenaar Date: Wed, 1 Dec 2021 12:41:31 +0000 (+0000) Subject: patch 8.2.3715: Vim9: valgrind reports spurious problems for a test X-Git-Tag: v8.2.3715 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0e496a85a89fb1fd21b6af6363dcfc276331110;p=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. --- diff --git a/src/testdir/test_vim9_builtin.vim b/src/testdir/test_vim9_builtin.vim index a0acac5fe..701caa666 100644 --- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -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', typename(jobs)) - assert_equal('dict', 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') diff --git a/src/testdir/test_vim9_fails.vim b/src/testdir/test_vim9_fails.vim index e09eb6543..216ef0b28 100644 --- a/src/testdir/test_vim9_fails.vim +++ b/src/testdir/test_vim9_fails.vim @@ -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', typename(jobs)) + assert_equal('dict', typename(job_info(jobs[0]))) + job_stop(job) + endif +enddef + diff --git a/src/version.c b/src/version.c index 080c687ed..b98d0b3ca 100644 --- a/src/version.c +++ b/src/version.c @@ -753,6 +753,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3715, /**/ 3714, /**/