From: Nicholas Clark Date: Tue, 22 Jun 2004 09:56:34 +0000 (+0000) Subject: Skip test if Devel::PPPort is not built. X-Git-Tag: accepted/trunk/20130322.191538~21870 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=763a0d2122c8fd573fe9eed4086d4716ae928428;p=platform%2Fupstream%2Fperl.git Skip test if Devel::PPPort is not built. Probably should fix h2xs to work without it. p4raw-id: //depot/perl@22965 --- diff --git a/lib/h2xs.t b/lib/h2xs.t index 09644af..5485323 100644 --- a/lib/h2xs.t +++ b/lib/h2xs.t @@ -12,6 +12,12 @@ BEGIN { chdir 't' if -d 't'; @INC = '../lib'; + # FIXME (or rather FIXh2xs) + require Config; + if (($Config::Config{'extensions'} !~ /\bDevel::PPPort\b/) ){ + print "1..0 # Skip -- Perl configured without Devel::PPPort module\n"; + exit 0; + } } # use strict; # we are not really testing this