Bumping version to 0.006022
[p5sagit/Devel-Declare.git] / t / debug.t
index 62b8721..d7b93c3 100644 (file)
--- a/t/debug.t
+++ b/t/debug.t
@@ -1,7 +1,13 @@
 use strict;
 use warnings;
 
-use Test::More tests => 1;
+use Test::More 0.88;
+
+BEGIN {
+  if("$]" eq "5.011002") {
+    plan skip_all => "line debugging broken on 5.11.2";
+  }
+}
 
 use Cwd qw/cwd/;
 use FindBin qw/$Bin/;
@@ -11,6 +17,7 @@ $ENV{DD_DEBUG} = 1;
 cwd("$Bin/..");
 
 # Write a .perldb file so we make sure we dont use the users one
+umask 077;
 open PERLDB, ">", "$Bin/../.perldb" or die "Cannot open $Bin/../.perldb: $!";
 close PERLDB;
 
@@ -23,6 +30,7 @@ $SIG{ALRM} = sub {
 alarm 10;
 my $output = `$^X -d t/debug.pl`;
 
-like($output, qr/method new {}, sub {my \$self = shift;/,
+like($output, qr/method new \{\}, sub \{my \$self = shift;/,
   "replaced line string visible in debug lines");
-1;
+
+done_testing;