Mercurial > vim
comparison src/libvterm/t/run-test.pl @ 20448:89fade12827d v8.2.0778
patch 8.2.0778: libvterm code lags behind the upstream version
Commit: https://github.com/vim/vim/commit/d4a5f40c0cc45fdfac01df0e408d557006eb0206
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 17 16:04:44 2020 +0200
patch 8.2.0778: libvterm code lags behind the upstream version
Problem: Libvterm code lags behind the upstream version.
Solution: Include revisions 720 - 723.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 17 May 2020 16:15:03 +0200 |
parents | 694594a0d25d |
children | 9ad473b50471 |
comparison
equal
deleted
inserted
replaced
20447:4fdc8319ab24 | 20448:89fade12827d |
---|---|
6 use IO::Handle; | 6 use IO::Handle; |
7 use IPC::Open2 qw( open2 ); | 7 use IPC::Open2 qw( open2 ); |
8 use POSIX qw( WIFEXITED WEXITSTATUS WIFSIGNALED WTERMSIG ); | 8 use POSIX qw( WIFEXITED WEXITSTATUS WIFSIGNALED WTERMSIG ); |
9 | 9 |
10 my $VALGRIND = 0; | 10 my $VALGRIND = 0; |
11 my $EXECUTABLE = "t/.libs/harness"; | |
11 GetOptions( | 12 GetOptions( |
12 'valgrind|v+' => \$VALGRIND, | 13 'valgrind|v+' => \$VALGRIND, |
14 'executable|e=s' => \$EXECUTABLE | |
13 ) or exit 1; | 15 ) or exit 1; |
14 | 16 |
15 my ( $hin, $hout, $hpid ); | 17 my ( $hin, $hout, $hpid ); |
16 { | 18 { |
17 local $ENV{LD_LIBRARY_PATH} = ".libs"; | 19 local $ENV{LD_LIBRARY_PATH} = ".libs"; |
18 my @command = "t/.libs/harness"; | 20 my @command = $EXECUTABLE; |
19 unshift @command, "valgrind", "--tool=memcheck", "--leak-check=yes", "--num-callers=25", "--log-file=valgrind.out", "--error-exitcode=126" if $VALGRIND; | 21 unshift @command, "valgrind", "--tool=memcheck", "--leak-check=yes", "--num-callers=25", "--log-file=valgrind.out", "--error-exitcode=126" if $VALGRIND; |
20 | 22 |
21 $hpid = open2 $hout, $hin, @command or die "Cannot open2 harness - $!"; | 23 $hpid = open2 $hout, $hin, @command or die "Cannot open2 harness - $!"; |
22 } | 24 } |
23 | 25 |