summaryrefslogtreecommitdiff
path: root/lib/perl5db.t
diff options
context:
space:
mode:
authorShlomi Fish <shlomif@shlomifish.org>2011-12-12 16:51:00 +0200
committerRicardo Signes <rjbs@cpan.org>2011-12-28 13:27:01 -0500
commit5343a617e1832a76d9e6805260dbcd579e845218 (patch)
treee480adf7039fe0009c0776e2147e8eccd8264688 /lib/perl5db.t
parente0538447777c738c86d5c7ae0986fc363348727d (diff)
downloadperl-5343a617e1832a76d9e6805260dbcd579e845218.tar.gz
perl -d: fixes "b . COND()".
break-dot for filename was broken due to previous commits. It was fixed now. Also documented it in pod/perldebug.pod, because it was undocumented.
Diffstat (limited to 'lib/perl5db.t')
-rw-r--r--lib/perl5db.t26
1 files changed, 25 insertions, 1 deletions
diff --git a/lib/perl5db.t b/lib/perl5db.t
index ba5d5856c1..c583a85868 100644
--- a/lib/perl5db.t
+++ b/lib/perl5db.t
@@ -28,7 +28,7 @@ BEGIN {
}
}
-plan(20);
+plan(21);
my $rc_filename = '.perldb';
@@ -456,6 +456,30 @@ EOF
"'c line_num' is working properly.");
}
+{
+ rc(<<'EOF');
+&parse_options("NonStop=0 TTY=db.out LineInfo=db.out");
+
+sub afterinit {
+ push (@DB::typeahead,
+ 'n',
+ 'n',
+ 'b . $exp > 200',
+ 'c',
+ q/print "Exp={$exp}\n";/,
+ 'q',
+ );
+
+}
+EOF
+
+ my $output = runperl(switches => [ '-d', ], stderr => 1, progfile => '../lib/perl5db/t/break-on-dot'); +
+ like($output, qr/
+ Exp=\{256\}
+ /msx,
+ "'b .' is working correctly.");
+}
+
END {
1 while unlink ($rc_filename, $out_fn);
}