comparison src/libvterm/t/run-test.pl @ 15166:694594a0d25d v8.1.0593

patch 8.1.0593: illegal memory access in libvterm test commit https://github.com/vim/vim/commit/37e3edce200c5a0ae8f81ca729b18d75477d2725 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 15 14:49:34 2018 +0100 patch 8.1.0593: illegal memory access in libvterm test Problem: Illegal memory access in libvterm test. Solution: Fix off-by-one error.
author Bram Moolenaar <Bram@vim.org>
date Sat, 15 Dec 2018 15:00:07 +0100
parents b8299e742f41
children 89fade12827d
comparison
equal deleted inserted replaced
15165:2bd7ea917861 15166:694594a0d25d
14 14
15 my ( $hin, $hout, $hpid ); 15 my ( $hin, $hout, $hpid );
16 { 16 {
17 local $ENV{LD_LIBRARY_PATH} = ".libs"; 17 local $ENV{LD_LIBRARY_PATH} = ".libs";
18 my @command = "t/.libs/harness"; 18 my @command = "t/.libs/harness";
19 unshift @command, "valgrind", "--quiet", "--error-exitcode=126" if $VALGRIND; 19 unshift @command, "valgrind", "--tool=memcheck", "--leak-check=yes", "--num-callers=25", "--log-file=valgrind.out", "--error-exitcode=126" if $VALGRIND;
20 20
21 $hpid = open2 $hout, $hin, @command or die "Cannot open2 harness - $!"; 21 $hpid = open2 $hout, $hin, @command or die "Cannot open2 harness - $!";
22 } 22 }
23 23
24 my $exitcode = 0; 24 my $exitcode = 0;