lib/perl5db.t: Add test for bug #116771, autotrace crashes debugger
authorKent Fredric <kentfredric@gmail.com>
Thu, 21 Feb 2013 09:44:04 +0000 (22:44 +1300)
committerRicardo Signes <rjbs@cpan.org>
Tue, 19 Mar 2013 03:02:05 +0000 (23:02 -0400)
lib/perl5db.t

index 9bd2453..fe1031b 100644 (file)
@@ -28,7 +28,7 @@ BEGIN {
     }
 }
 
-plan(111);
+plan(113);
 
 my $rc_filename = '.perldb';
 
@@ -100,6 +100,13 @@ EOF
     is( $?, 0, '[perl #116769] frame=2 does not crash debugger, exit == 0' );
     like( $output, 'success' , '[perl #116769] code is run' );
 }
+# [ perl #116771] autotrace
+{
+    local $ENV{PERLDB_OPTS} = "autotrace nonstop";
+    my $output = runperl( switches => [ '-d' ], prog => 'print q{success}' );
+    is( $?, 0, '[perl #116771] autotrace does not crash debugger, exit == 0' );
+    like( $output, 'success' , '[perl #116771] code is run' );
+}
 
 {
     rc(<<'EOF');