summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-06-15 16:37:46 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-06-15 16:37:46 +0000
commit6cf707aacec423cdf4a418d74906b7902c501262 (patch)
treecc32e542322d15f6d994ed3e0a1f50e513f8b20d /t
parent645ff3cb711b95d7444ec52a58fa4be7561ff5d1 (diff)
downloadperl-6cf707aacec423cdf4a418d74906b7902c501262.tar.gz
Introduce PERL_RUNPERL_DEBUG to alter the behavior of runperl(),
this can be useful to use valgrind for example p4raw-id: //depot/perl@24856
Diffstat (limited to 't')
-rw-r--r--t/test.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/test.pl b/t/test.pl
index 7550b490e5..9f4f03bfb8 100644
--- a/t/test.pl
+++ b/t/test.pl
@@ -390,6 +390,10 @@ sub _quote_args {
sub _create_runperl { # Create the string to qx in runperl().
my %args = @_;
my $runperl = $^X =~ m/\s/ ? qq{"$^X"} : $^X;
+ #- this allows, for example, to set PERL_RUNPERL_DEBUG=/usr/bin/valgrind
+ if ($ENV{PERL_RUNPERL_DEBUG}) {
+ $runperl = "$ENV{PERL_RUNPERL_DEBUG} $runperl";
+ }
unless ($args{nolib}) {
if ($is_macos) {
$runperl .= ' -I::lib';