summaryrefslogtreecommitdiff
path: root/lib/perl5db.t
diff options
context:
space:
mode:
authorDuke Leto <jonathan@leto.net>2009-06-07 09:50:38 -0700
committerDuke Leto <jonathan@leto.net>2009-06-07 09:50:38 -0700
commit7dcc656fa9fbe0f5c982c9dc7ed48191afa69ce8 (patch)
tree0257fe442d0e8ba2b2d33cd5d0520c398cb5d6ad /lib/perl5db.t
parent422c59bf485ce57586a2a1e15602d42cac4d2612 (diff)
downloadperl-7dcc656fa9fbe0f5c982c9dc7ed48191afa69ce8.tar.gz
Add a test for a thread-enabled debugger
Diffstat (limited to 'lib/perl5db.t')
-rwxr-xr-xlib/perl5db.t8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/perl5db.t b/lib/perl5db.t
index e14cfd30dd..6c01aa9138 100755
--- a/lib/perl5db.t
+++ b/lib/perl5db.t
@@ -26,7 +26,7 @@ my $dev_tty = '/dev/tty';
}
}
-plan(3);
+plan(4);
sub rc {
open RC, ">", ".perldb" or die $!;
@@ -88,6 +88,12 @@ like($contents, qr/sub factorial/,
like($output, qr/Undefined symbols 0/, 'there are no undefined values in the symbol table');
}
+{
+ local $ENV{PERLDB_OPTS} = "ReadLine=0 NonStop=1";
+ my $output = runperl(switches => [ '-dt' ], progfile => '../lib/perl5db/t/symbol-table-bug');
+ like($output, qr/Undefined symbols 0/, 'there are no undefined values in the symbol table when running with thread support');
+}
+
# clean up.
END {