From: Nicholas Clark Date: Fri, 18 Jun 2004 13:09:24 +0000 (+0000) Subject: Skip test if Devel::PPPort not built X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2d423903636554795b22a7b943522322f8675856;p=p5sagit%2Fp5-mst-13.2.git Skip test if Devel::PPPort not built p4raw-id: //depot/perl@22953 --- diff --git a/ext/Devel/PPPort/t/test.t b/ext/Devel/PPPort/t/test.t index de9cc88..469bd87 100644 --- a/ext/Devel/PPPort/t/test.t +++ b/ext/Devel/PPPort/t/test.t @@ -1,6 +1,11 @@ BEGIN { chdir 't' if -d 't'; @INC = '../lib' if -d '../lib'; + require Config; + if (($Config::Config{'extensions'} !~ /\bDevel::PPPort\b/) ){ + print "1..0 # Skip -- Perl configured without Devel::PPPort module\n"; + exit 0; + } } use Devel::PPPort;