From: Karen Etheridge Date: Sat, 28 Mar 2015 02:30:04 +0000 (-0700) Subject: fix test: the TAP actually comes from a subprocess, so the plan is broken X-Git-Tag: v0.13~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ac980bb41f34e3d9f94fd93353177cee7315b72f;p=p5sagit%2FSub-Name.git fix test: the TAP actually comes from a subprocess, so the plan is broken can result in a skipped test coming out wrong: e.g. http://www.cpantesters.org/cpan/report/5846c0a8-d12c-11e4-9cf9-0ad4a10b8abb http://www.cpantesters.org/cpan/report/fb6132f2-be7e-11e4-883f-3fda4ebb7ab2 --- diff --git a/Changes b/Changes index b3655e3..9ab44a7 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Revision history for {{$dist->name}} {{$NEXT}} + - fix optional test of interaction with B::C that sometimes invalidly + failed 0.12 2014-09-04 07:28:59Z - fix licence in LICENSE and pod diff --git a/t/RT96893_perlcc.t b/t/RT96893_perlcc.t index 963ee28..3adba98 100644 --- a/t/RT96893_perlcc.t +++ b/t/RT96893_perlcc.t @@ -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