This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
645ff3c
)
Introduce PERL_RUNPERL_DEBUG to alter the behavior of runperl(),
author
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Wed, 15 Jun 2005 16:37:46 +0000
(16:37 +0000)
committer
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Wed, 15 Jun 2005 16:37:46 +0000
(16:37 +0000)
this can be useful to use valgrind for example
p4raw-id: //depot/perl@24856
t/test.pl
patch
|
blob
|
blame
|
history
diff --git
a/t/test.pl
b/t/test.pl
index
7550b49
..
9f4f03b
100644
(file)
--- 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';