summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2004-10-30 22:49:18 +0000
committerNicholas Clark <nick@ccl4.org>2004-10-30 22:49:18 +0000
commit2799c20625244ac22c03fd0109d9df2488876338 (patch)
treef985fdf71f59a4c8349c1fafa4a9603c5c37f1b2 /lib
parent54b118e450a05696efa125aa6f95e265900e5b61 (diff)
downloadperl-2799c20625244ac22c03fd0109d9df2488876338.tar.gz
Skip tests that require Data::Dumper if it is not built
p4raw-id: //depot/perl@23437
Diffstat (limited to 'lib')
-rw-r--r--lib/ExtUtils/t/Liblist.t5
-rw-r--r--lib/ExtUtils/t/prereq_print.t5
2 files changed, 10 insertions, 0 deletions
diff --git a/lib/ExtUtils/t/Liblist.t b/lib/ExtUtils/t/Liblist.t
index 0ee90be2ee..2708716b88 100644
--- a/lib/ExtUtils/t/Liblist.t
+++ b/lib/ExtUtils/t/Liblist.t
@@ -4,6 +4,11 @@ BEGIN {
if( $ENV{PERL_CORE} ) {
chdir 't' if -d 't';
unshift @INC, '../lib';
+ require Config; import Config;
+ if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
+ print "1..0 # Skip: Data::Dumper was not built\n";
+ exit 0;
+ }
}
else {
unshift @INC, 't/lib';
diff --git a/lib/ExtUtils/t/prereq_print.t b/lib/ExtUtils/t/prereq_print.t
index 05790e5834..42c0213380 100644
--- a/lib/ExtUtils/t/prereq_print.t
+++ b/lib/ExtUtils/t/prereq_print.t
@@ -4,6 +4,11 @@ BEGIN {
if( $ENV{PERL_CORE} ) {
chdir 't' if -d 't';
@INC = ('../lib', 'lib');
+ require Config; import Config;
+ if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
+ print "1..0 # Skip: Data::Dumper was not built\n";
+ exit 0;
+ }
}
else {
unshift @INC, 't/lib';