eval "use B::C;";
if ($@) {
- print "1..0 #SKIP B::C required for testing perlcc -O3\n";
+ print "1..0 # SKIP B::C required for testing perlcc -O3\n";
+ exit;
+} elsif ($B::C::VERSION lt '1.48') {
+ print "1..0 # SKIP testing too old B-C-$B::C::VERSION\n";
exit;
} else {
print "1..1\n";
}
my $f = "t/rt96893x.pl";
-open my $fh, ">", $f; END { unlink $f }
+open my $fh, ">", $f; END { unlink $f if $f }
print $fh 'use Sub::Name; subname("main::bar", sub{42}); print "ok 1\n";';
close $fh;