use strict;
use warnings;
-eval "require B::C;";
-if ($@) {
- 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";
-}
+use Test::More 0.88;
+
+plan skip_all => 'B::C required for testing perlcc -O3'
+ unless eval "require B::C;";
+
+plan skip_all => "testing too old B-C-$B::C::VERSION"
+ unless eval { B::C->VERSION('1.48') };
my $f = "t/rt96893x.pl";
open my $fh, ">", $f; END { unlink $f if $f }
system($^X, qw(-Mblib -S perlcc -O3 -UCarp -UConfig -r), $f);
unlink "t/rt96893x", "t/rt96893x.exe";
+
+done_testing;
# vim: ft=perl