summaryrefslogtreecommitdiff
path: root/t/test.pl
diff options
context:
space:
mode:
authorGeorge Greer <perl@greerga.m-l.org>2010-07-02 18:50:12 -0400
committerH.Merijn Brand <h.m.brand@xs4all.nl>2010-07-03 08:53:23 +0200
commite07ce2e4e82e3054dc912dbe99348744647bf30b (patch)
tree443ed0560cfd2d551fb3c751b77ea6f85d60a099 /t/test.pl
parent9e2bec029fb0c747ff8d682f110159537237714b (diff)
downloadperl-e07ce2e4e82e3054dc912dbe99348744647bf30b.tar.gz
Adjust 'make test.valgrind' to account for cpan/dist/ext separation.
Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
Diffstat (limited to 't/test.pl')
-rw-r--r--t/test.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/test.pl b/t/test.pl
index 88e52ee7bd..6109d8ee7b 100644
--- a/t/test.pl
+++ b/t/test.pl
@@ -814,6 +814,9 @@ sub watchdog ($)
my $timeout = shift;
my $timeout_msg = 'Test process timed out - terminating';
+ # Valgrind slows perl way down so give it more time before dying.
+ $timeout *= 10 if $ENV{PERL_VALGRIND};
+
my $pid_to_kill = $$; # PID for this process
# Don't use a watchdog process if 'threads' is loaded -