summaryrefslogtreecommitdiff
path: root/lib/perl5db.t
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-08-17 16:53:04 +0000
committerNicholas Clark <nick@ccl4.org>2008-08-17 16:53:04 +0000
commitb091e0d1cba15fd0a149eca8bc9a37cdbb578d17 (patch)
treefded3807ab6f1bc314667a1299dbe667429e5399 /lib/perl5db.t
parent7aa55bb4d7409fae441c5fde09543172f4df350d (diff)
downloadperl-b091e0d1cba15fd0a149eca8bc9a37cdbb578d17.tar.gz
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
Diffstat (limited to 'lib/perl5db.t')
-rw-r--r--lib/perl5db.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/perl5db.t b/lib/perl5db.t
index 12a090a200..2cf7958d33 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);