From b091e0d1cba15fd0a149eca8bc9a37cdbb578d17 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Sun, 17 Aug 2008 16:53:04 +0000 Subject: [PATCH] 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 --- lib/perl5db.t | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.7.4