fix repository
[p5sagit/Devel-Declare.git] / t / debug.t
index 9373421..c256ebf 100644 (file)
--- a/t/debug.t
+++ b/t/debug.t
@@ -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;