From: Nicholas Clark Date: Sun, 17 Aug 2008 16:53:04 +0000 (+0000) Subject: Skip the Perl debugger test if the harness itself is already running X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b091e0d1cba15fd0a149eca8bc9a37cdbb578d17;p=p5sagit%2Fp5-mst-13.2.git Skip the Perl debugger test if the harness itself is already running under some kind of debugger (such as a profiler) to avoid confusing things. (such as trashing the profiler output file from the harness.) p4raw-id: //depot/perl@34204 --- diff --git a/lib/perl5db.t b/lib/perl5db.t index 12a090a..2cf7958 100644 --- a/lib/perl5db.t +++ b/lib/perl5db.t @@ -20,6 +20,10 @@ my $dev_tty = '/dev/tty'; print "1..0 # Skip: no $dev_tty\n"; exit 0; } + if ($ENV{PERL5DB}) { + print "1..0 # Skip: \$ENV{PERL5DB} is already set to '$ENV{PERL5DB}'\n"; + exit 0; + } } plan(1);