fix test: the TAP actually comes from a subprocess, so the plan is broken
[p5sagit/Sub-Name.git] / t / RT96893_perlcc.t
index 963ee28..3adba98 100644 (file)
@@ -12,6 +12,8 @@ plan skip_all => "B::C is too old (require 1.48, have $B::C::VERSION)"
 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 }
 print $fh 'use Sub::Name; subname("main::bar", sub{42}); print "ok 1\n";';
@@ -20,6 +22,4 @@ close $fh;
 system($^X, qw(-Mblib -S perlcc -O3 -UCarp -UConfig -r), $f);
 
 unlink "t/rt96893x", "t/rt96893x.exe";
-
-done_testing;
 # vim: ft=perl