diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-06-15 16:37:46 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-06-15 16:37:46 +0000 |
commit | 6cf707aacec423cdf4a418d74906b7902c501262 (patch) | |
tree | cc32e542322d15f6d994ed3e0a1f50e513f8b20d /t | |
parent | 645ff3cb711b95d7444ec52a58fa4be7561ff5d1 (diff) | |
download | perl-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.pl | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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'; |