[perl5db] Add another test.
authorShlomi Fish <shlomif@shlomifish.org>
Thu, 27 Sep 2012 18:13:18 +0000 (20:13 +0200)
committerRicardo Signes <rjbs@cpan.org>
Mon, 12 Nov 2012 14:18:25 +0000 (09:18 -0500)
lib/perl5db.t

index 8eac772..29241d4 100644 (file)
@@ -28,7 +28,7 @@ BEGIN {
     }
 }
 
-plan(100);
+plan(101);
 
 my $rc_filename = '.perldb';
 
@@ -2401,6 +2401,31 @@ sub _calc_trace_wrapper
     );
 }
 
+# Test the o PrintRet=0 option in list context
+{
+    my $wrapper = DebugWrap->new(
+        {
+            cmds =>
+            [
+                'o PrintRet=0',
+                'b 29',
+                'c',
+                q/$x = 'l';/,
+                'b 17',
+                'c',
+                'r',
+                'q',
+            ],
+            prog => '../lib/perl5db/t/test-PrintRet-option-1',
+        }
+    );
+
+    $wrapper->contents_unlike(
+        qr/list context/,
+        "Test o PrintRet=0 in list context",
+    );
+}
+
 END {
     1 while unlink ($rc_filename, $out_fn);
 }