X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fh2xs.t;h=a59afa2f58b903934036c5eab9034f75463c9592;hb=b1fd7ccc41177ed6dd350c64b8373d34ce2d689e;hp=09644af84602f74697b8e87febfc01ac5a8fe854;hpb=f1c8c9362c4d1029d2c52ffe1e972f0f0b3d5771;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/h2xs.t b/lib/h2xs.t index 09644af..a59afa2 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'} !~ m!\bDevel/PPPort\b!) ){ + print "1..0 # Skip -- Perl configured without Devel::PPPort module\n"; + exit 0; + } } # use strict; # we are not really testing this @@ -51,6 +57,9 @@ my $name = 'h2xst'; my $header = "$name.h"; my $thisversion = sprintf "%vd", $^V; +# If this test has failed previously a copy may be left. +rmtree($name); + my @tests = ( "-f -n $name", $], <<"EOXSFILES", Defaulting to backwards compatibility with perl $thisversion