X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fdebug.t;h=d7b93c3b979a7244fbb540820c0ee97c6c4e4968;hb=8aa609aed8c1042b5c9ffa49b4363eabde131d53;hp=93734215e33979383aa0e4adee0190a789357841;hpb=023db2fba97b8b676d5ab45c99328b66409151b4;p=p5sagit%2FDevel-Declare.git diff --git a/t/debug.t b/t/debug.t index 9373421..d7b93c3 100644 --- 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;