From be1dfd826932d471e10a47d0bcbe6195ba4a5c6b Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Wed, 12 Sep 2012 10:22:26 +0300 Subject: [PATCH] Add a test for the < and > commands together. --- lib/perl5db.t | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/lib/perl5db.t b/lib/perl5db.t index 10b87ad..51b1cf0 100644 --- a/lib/perl5db.t +++ b/lib/perl5db.t @@ -28,7 +28,7 @@ BEGIN { } } -plan(73); +plan(74); my $rc_filename = '.perldb'; @@ -1644,6 +1644,32 @@ package main; ); } +# Test the < and > commands together +{ + my $wrapper = DebugWrap->new( + { + cmds => + [ + q/$::lorem = 0;/, + q/< $::lorem += 10;/, + q/> print "\nLOREM=<$::lorem>\n"/, + q/b 7/, + q/b 5/, + 'c', + 'c', + 'q', + ], + prog => '../lib/perl5db/t/disable-breakpoints-1', + } + ); + + $wrapper->output_like(qr# + ^LOREM=<10>\n + #msx, + q#Test < and > commands. #, + ); +} + END { 1 while unlink ($rc_filename, $out_fn); } -- 1.8.3.1