Mercurial > vim
changeset 28827:91b2386b9d9e v8.2.4937
patch 8.2.4937: no test for what 8.2.4931 fixes
Commit: https://github.com/vim/vim/commit/ead241538cdd26cbf02599b6e23cd8baeafbcbb2
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 10 21:11:12 2022 +0100
patch 8.2.4937: no test for what 8.2.4931 fixes
Problem: No test for what 8.2.4931 fixes.
Solution: Add a test that triggers a valgrind error.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 10 May 2022 22:15:02 +0200 |
parents | 3580e8f79e29 |
children | f4d6061c882f |
files | src/testdir/test_perl.vim src/version.c |
diffstat | 2 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_perl.vim +++ b/src/testdir/test_perl.vim @@ -308,6 +308,16 @@ func Test_000_SvREFCNT() %bw! endfunc +" This caused a memory error before issue #10386 was fixed +func Test_stack_usage_fix() + let script =<< CODE + " This will grow Perl's stack in first invocation + eval [0, 0]->map({ -> perleval("push@_,0..4096;0") }) + q! +CODE + call RunVim([], script, '') +endfunc + func Test_set_cursor() " Check that setting the cursor position works. new