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