diff options
author | Nicholas Clark <nick@ccl4.org> | 2004-10-30 22:49:18 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2004-10-30 22:49:18 +0000 |
commit | 2799c20625244ac22c03fd0109d9df2488876338 (patch) | |
tree | f985fdf71f59a4c8349c1fafa4a9603c5c37f1b2 /lib | |
parent | 54b118e450a05696efa125aa6f95e265900e5b61 (diff) | |
download | perl-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.t | 5 | ||||
-rw-r--r-- | lib/ExtUtils/t/prereq_print.t | 5 |
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'; |