summaryrefslogtreecommitdiff
path: root/ext/re
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2004-06-18 13:07:40 +0000
committerNicholas Clark <nick@ccl4.org>2004-06-18 13:07:40 +0000
commit2628e9cec79137941c405ec5dcd495a6d17881c2 (patch)
tree5b0d4c18a6efee296fe7b0c3e66917a201392ed3 /ext/re
parent9cd8f8571248133e4de95e0188070c0cef2693b6 (diff)
downloadperl-2628e9cec79137941c405ec5dcd495a6d17881c2.tar.gz
Skip re tests if re not built.
p4raw-id: //depot/perl@22952
Diffstat (limited to 'ext/re')
-rw-r--r--ext/re/t/re.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/re/t/re.t b/ext/re/t/re.t
index 1a8f278566..2a1923ea79 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;