Bumping version to 0.006022
[p5sagit/Devel-Declare.git] / t / debug.t
index 9373421..d7b93c3 100644 (file)
--- a/t/debug.t
+++ b/t/debug.t
@@ -1,10 +1,10 @@
 use strict;
 use warnings;
 
-use Test::More;
+use Test::More 0.88;
 
 BEGIN {
-  if($] eq "5.011002") {
+  if("$]" eq "5.011002") {
     plan skip_all => "line debugging broken on 5.11.2";
   }
 }
@@ -17,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;
 
@@ -29,7 +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");
 
 done_testing;