constant->import( TRACK_UNDEFER_FAIL => (
$INC{'Test/Builder.pm'} || $INC{'Test/Builder2.pm'}
and
- $0 =~ m|^ x?t / .+ \.t $|x
+ $0 =~ m{ ^ (?: \. \/ )? x?t / .+ \.t $}x
) ? 1 : 0 );
require B;
my $todo = sub {
note "\nTesting $tname without Sub::Name (pass @{[ $pass ++ ]})\n\n";
- my $tfn = catfile($Bin, $tname);
+ my ($tfn) = catfile($Bin, $tname) =~ /(.+)/;
delete $INC{$_} for (
qw/AccessorGroups.pm AccessorGroupsRO.pm AccessorGroupsSubclass.pm AccessorGroupsParent.pm AccessorGroupsWO.pm/,
my $todo = sub {
note "\nTesting $tname with USE_XS (pass @{[ $pass++ ]})\n\n";
- my $tfn = catfile($Bin, $tname);
+ my ($tfn) = catfile($Bin, $tname) =~ /(.+)/;
for (
qw|AccessorGroups.pm AccessorGroups/BeenThereDoneThat.pm AccessorGroupsRO.pm AccessorGroupsSubclass.pm AccessorGroupsParent.pm AccessorGroupsWO.pm|,