X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2FRT96893_perlcc.t;fp=t%2FRT96893_perlcc.t;h=963ee28e736d26c7242eadc4f5ad7f6f55aaf95c;hb=c44463c558fd0ac1fb22d0fec933047ab51ea5a7;hp=255394a33757ea526d1d78dfe3c0d84ab4e89827;hpb=b9534efa68de9ed002dddef31f2a51759fe59e0e;p=p5sagit%2FSub-Name.git diff --git a/t/RT96893_perlcc.t b/t/RT96893_perlcc.t index 255394a..963ee28 100644 --- a/t/RT96893_perlcc.t +++ b/t/RT96893_perlcc.t @@ -9,6 +9,9 @@ plan skip_all => 'B::C required for testing perlcc -O3' 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'); + 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";';