diff options
author | Shlomi Fish <shlomif@shlomifish.org> | 2012-09-28 20:03:12 +0200 |
---|---|---|
committer | Ricardo Signes <rjbs@cpan.org> | 2012-11-12 09:18:25 -0500 |
commit | 473c46a8966eb3ce66e7b8030b0202bb658a23c1 (patch) | |
tree | ac91ec48621ab585703f0b3ac4be5f4e5fefc7e3 /lib/perl5db.t | |
parent | 19957b5565b536767d585710f5bc950a96a1abef (diff) | |
download | perl-473c46a8966eb3ce66e7b8030b0202bb658a23c1.tar.gz |
Add a test for the frame option.
Diffstat (limited to 'lib/perl5db.t')
-rw-r--r-- | lib/perl5db.t | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/lib/perl5db.t b/lib/perl5db.t index 0dfbd43d5b..dfd99b73bf 100644 --- a/lib/perl5db.t +++ b/lib/perl5db.t @@ -28,7 +28,7 @@ BEGIN { } } -plan(103); +plan(104); my $rc_filename = '.perldb'; @@ -2476,6 +2476,34 @@ sub _calc_trace_wrapper ); } +# Test the o frame option. +{ + my $wrapper = DebugWrap->new( + { + cmds => + [ + # This is to avoid getting the "Debugger program terminated" + # junk that interferes with the normal output. + 'o inhibit_exit=0', + 'b 10', + 'c', + 'o frame=255', + 'c', + 'q', + ], + prog => '../lib/perl5db/t/test-frame-option-1', + } + ); + + $wrapper->contents_like( + qr/ + in\s*\.=main::my_other_func\(3,\ 1200\)\ from.*? + out\s*\.=main::my_other_func\(3,\ 1200\)\ from + /msx, + "Test o PrintRet=0 in void context", + ); +} + END { 1 while unlink ($rc_filename, $out_fn); } |