The test doesn't work that well when -Uusedl.
authorJarkko Hietaniemi <jhi@iki.fi>
Thu, 10 Apr 2003 10:56:25 +0000 (10:56 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Thu, 10 Apr 2003 10:56:25 +0000 (10:56 +0000)
Some of the tests could be salvaged even then I guess.

p4raw-id: //depot/perl@19183

lib/ExtUtils/t/Constant.t

index 4e5819d..af63767 100644 (file)
@@ -5,13 +5,17 @@ BEGIN {
         chdir 't' if -d 't';
         @INC = '../lib';
     }
+    use Config;
+    unless ($Config{usedl}) {
+       print "1..0 # no usedl, skipping\n";
+       exit 0;
+    }
 }
 
 # use warnings;
 use strict;
 use ExtUtils::MakeMaker;
 use ExtUtils::Constant qw (constant_types C_constant XS_constant autoload);
-use Config;
 use File::Spec;
 use Cwd;