$expected =~ s|(\./)?abc\.pm|:abc.pm|g if $^O eq 'MacOS';
$expected =~ s|./abc|:abc|g if $^O eq 'MacOS';
my $prefix = ($results =~ s/^PREFIX\n//) ;
- my $TODO = $prog =~ m/^#\s*TODO:/;
if ( $results =~ s/^SKIPPED\n//) {
print "$results\n" ;
}
elsif (($prefix and $results !~ /^\Q$expected/) or
(!$prefix and $results ne $expected)){
- if (! $TODO) {
- print STDERR "PROG: $switch\n$prog\n";
- print STDERR "EXPECTED:\n$expected\n";
- print STDERR "GOT:\n$results\n";
- }
+ print STDERR "PROG: $switch\n$prog\n";
+ print STDERR "EXPECTED:\n$expected\n";
+ print STDERR "GOT:\n$results\n";
print "not ";
}
- print "ok " . ++$i . ($TODO ? " # TODO" : "") . "\n";
+ print "ok " . ++$i . "\n";
foreach (@temps)
{ unlink $_ if $_ }
}
EXPECT
Bareword "FOO" not allowed while "strict subs" in use at - line 2.
Execution of - aborted due to compilation errors.
-########
-# TODO: [perl #53806] No complain about bareword
-use strict 'subs';
-print FOO . "\n";
-EXPECT
-Bareword "FOO" not allowed while "strict subs" in use at - line 3.
-Execution of - aborted due to compilation errors.
-########
-# TODO: [perl #53806] No complain about bareword
-use strict 'subs';
-$ENV{PATH} = "";
-system(FOO . "\n");
-EXPECT
-Bareword "FOO" not allowed while "strict subs" in use at - line 4.
-Execution of - aborted due to compilation errors.