From 3743412c99b8ad953af1c048e2a0dae2036d8c77 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Wed, 12 Sep 2012 10:56:54 +0300 Subject: [PATCH] Test the { * command. --- lib/perl5db.t | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/lib/perl5db.t b/lib/perl5db.t index 23346d0..7a65c3b 100644 --- a/lib/perl5db.t +++ b/lib/perl5db.t @@ -28,7 +28,7 @@ BEGIN { } } -plan(75); +plan(77); my $rc_filename = '.perldb'; @@ -1704,6 +1704,34 @@ package main; ); } +# Test the { * command. +{ + my $wrapper = DebugWrap->new( + { + cmds => + [ + '{ q', + '{ *', + q/b 5/, + q/c/, + q/print (("One" x 5), "\n");/, + q/q/, + ], + prog => '../lib/perl5db/t/disable-breakpoints-1', + } + ); + + $wrapper->contents_like(qr# + ^All\ \{\ actions\ cleared\.\n + #msx, + 'Test the { * command', + ); + + $wrapper->output_like(qr/OneOneOneOneOne/, + '{ * test - output is OK.', + ); +} + END { 1 while unlink ($rc_filename, $out_fn); } -- 2.7.4