Skip re tests if re not built.
Nicholas Clark [Fri, 18 Jun 2004 13:07:40 +0000 (13:07 +0000)]
p4raw-id: //depot/perl@22952

ext/re/t/re.t

index 1a8f278..2a1923e 100644 (file)
@@ -3,6 +3,11 @@
 BEGIN {
        chdir 't' if -d 't';
        @INC = '../lib';
+       require Config;
+       if (($Config::Config{'extensions'} !~ /\bre\b/) ){
+               print "1..0 # Skip -- Perl configured without re module\n";
+               exit 0;
+       }
 }
 
 use strict;