diff options
author | Shlomi Fish <shlomif@shlomifish.org> | 2012-09-21 12:14:35 +0300 |
---|---|---|
committer | Ricardo Signes <rjbs@cpan.org> | 2012-11-12 09:18:24 -0500 |
commit | 5e2b42ddebea0a2233ca328baa553143818deee5 (patch) | |
tree | 09132a6de271175a2ac2bf453d5c370bd2a9e50c /lib/perl5db.t | |
parent | f910787d6f86aa5258b669c23e5375baf857cdc7 (diff) | |
download | perl-5e2b42ddebea0a2233ca328baa553143818deee5.tar.gz |
Fix a bug with o AutoTrace.
There it was.
Diffstat (limited to 'lib/perl5db.t')
-rw-r--r-- | lib/perl5db.t | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/lib/perl5db.t b/lib/perl5db.t index 631635ea70..08f513abbb 100644 --- a/lib/perl5db.t +++ b/lib/perl5db.t @@ -28,7 +28,7 @@ BEGIN { } } -plan(95); +plan(96); my $rc_filename = '.perldb'; @@ -2275,6 +2275,32 @@ sub _calc_trace_wrapper ); } +# Test the o AutoTrace command with function calls +{ + my $wrapper = DebugWrap->new( + { + cmds => + [ + 'o AutoTrace', + 'b 18', + 'c', + 'x ["foo"]', + 'x ["bar"]', + 'q', + ], + prog => '../lib/perl5db/t/test-warnLevel-option-1', + } + ); + + $wrapper->contents_like(qr/ + ^main::\([^:]+:28\):\n + 28:\s+myfunc\(\);\n + main::myfunc\([^:]+:25\):\n + 25:\s+bar\(\);\n + /msx, + 'Test the t command with function calls.', + ); +} END { 1 while unlink ($rc_filename, $out_fn); } |