Mercurial > vim
changeset 25411:df8499997fcc v8.2.3242
patch 8.2.3242: Vim9: valgrind reports leaks in builtin function test
Commit: https://github.com/vim/vim/commit/0732932553e54e9bfca07e55b47201b8f30b2c4f
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 28 22:44:08 2021 +0200
patch 8.2.3242: Vim9: valgrind reports leaks in builtin function test
Problem: Vim9: valgrind reports leaks in builtin function test.
Solution: Do not start a job.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 28 Jul 2021 22:45:05 +0200 |
parents | e5630f3134a3 |
children | 3b4a5b4b2bfb |
files | src/testdir/test_vim9_builtin.vim src/version.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -3239,8 +3239,8 @@ def Test_substitute() assert_equal('AX234', res) if has('job') - assert_fails('"text"->substitute(".*", () => job_start(":"), "")', 'E908: using an invalid value as a String: job') - assert_fails('"text"->substitute(".*", () => job_start(":")->job_getchannel(), "")', 'E908: using an invalid value as a String: channel') + assert_fails('"text"->substitute(".*", () => test_null_job(), "")', 'E908: using an invalid value as a String: job') + assert_fails('"text"->substitute(".*", () => test_null_channel(), "")', 'E908: using an invalid value as a String: channel') endif CheckDefAndScriptFailure2(['substitute(1, "b", "1", "d")'], 'E1013: Argument 1: type mismatch, expected string but got number', 'E1174: String required for argument 1') CheckDefAndScriptFailure2(['substitute("a", 2, "1", "d")'], 'E1013: Argument 2: type mismatch, expected string but got number', 'E1174: String required for argument 2')