From: Karen Etheridge Date: Sat, 9 Aug 2014 04:05:21 +0000 (-0700) Subject: this test also requires perlcc to run X-Git-Tag: v0.09~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c44463c558fd0ac1fb22d0fec933047ab51ea5a7;p=p5sagit%2FSub-Name.git this test also requires perlcc to run e.g. see failures: http://www.cpantesters.org/cpan/report/744c9670-1e48-11e4-bb3c-7408e0bfc7aa http://www.cpantesters.org/cpan/report/7ce69e5a-1f08-11e4-bc9c-0165e0bfc7aa http://www.cpantesters.org/cpan/report/dc6e14f2-1f26-11e4-ad93-d8e4e0bfc7aa http://www.cpantesters.org/cpan/report/0faa4ed0-1ebe-11e4-ae61-5739e0bfc7aa --- diff --git a/Makefile.PL b/Makefile.PL index e0a33af..904244e 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -11,6 +11,10 @@ WriteMakefile( 'Exporter' => '0', 'DynaLoader' => '0', }, + BUILD_REQUIRES => { + 'Devel::CheckBin' => '0', + 'Test::More' => '0', + }, MIN_PERL_VERSION => '5.006', META_MERGE => { 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";';