use strict;
use warnings;
-eval "use B::C;";
-if ($@) {
- print "1..0 # SKIP B::C required for testing perlcc -O3\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 => "B::C is too old (require 1.48, have $B::C::VERSION)"
+ unless eval { B::C->VERSION('1.48') };
+
+use Devel::CheckBin;
+plan skip_all => 'perlcc required' unless can_run('perlcc');
+
+plan tests => 1;
my $f = "t/rt96893x.pl";
open my $fh, ">", $f; END { unlink $f if $f }