From: Nicholas Clark Date: Fri, 18 Jun 2004 13:07:40 +0000 (+0000) Subject: Skip re tests if re not built. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2628e9cec79137941c405ec5dcd495a6d17881c2;p=p5sagit%2Fp5-mst-13.2.git Skip re tests if re not built. p4raw-id: //depot/perl@22952 --- diff --git a/ext/re/t/re.t b/ext/re/t/re.t index 1a8f278..2a1923e 100644 --- a/ext/re/t/re.t +++ b/ext/re/t/re.t @@ -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;