summaryrefslogtreecommitdiff
path: root/lib/perl5db.t
diff options
context:
space:
mode:
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);
}