This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Skip test if Devel::PPPort is not built.
authorNicholas Clark <nick@ccl4.org>
Tue, 22 Jun 2004 09:56:34 +0000 (09:56 +0000)
committerNicholas Clark <nick@ccl4.org>
Tue, 22 Jun 2004 09:56:34 +0000 (09:56 +0000)
Probably should fix h2xs to work without it.

p4raw-id: //depot/perl@22965

lib/h2xs.t

index 09644af..5485323 100644 (file)
 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