Fix all debugger issues from perl 5.8.1 on FC++ (RT#69862)
[p5sagit/namespace-clean.git] / t / 07-debugger.t
index fd4ee87..decd452 100644 (file)
@@ -1,13 +1,15 @@
-#!/usr/bin/perl -d
+use Test::More;
+
+BEGIN {
+  $ENV{PERLDB_OPTS} = 'NonStop';
+}
 
 BEGIN {
-    push @DB::typeahead, "c", "q";
 
-    # try to shut it up at least a little bit
-    open my $out, ">", \my $out_buf;
-    $DB::OUT = $out;
-    open my $in, "<", \my $in_buf;
-    $DB::IN = $in;
+#line 1
+#!/usr/bin/perl -d
+#line 10
+
 }
 
 {
@@ -24,11 +26,9 @@ BEGIN {
     }
 }
 
-use Test::More tests => 5;
-
 ok( !Foo->can("foo"), "foo cleaned up" );
 ok( !Foo->can("baz"), "baz cleaned up" );
 
 Foo->bar();
 
-pass();
+done_testing;