diff options
author | Nicholas Clark <nick@ccl4.org> | 2004-06-22 09:57:23 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2004-06-22 09:57:23 +0000 |
commit | 78cd8b71ec0d7665c422181192afa2819a5d887d (patch) | |
tree | 14c598444537bd29cf147b3c9b8296ba55b28a6e /lib | |
parent | b5cc9730721234f703470e46d73591d9849c4cd0 (diff) | |
download | perl-78cd8b71ec0d7665c422181192afa2819a5d887d.tar.gz |
Skip tests if List::Util not built
p4raw-id: //depot/perl@22967
Diffstat (limited to 'lib')
-rw-r--r-- | lib/DB.t | 5 | ||||
-rw-r--r-- | lib/Dumpvalue.t | 5 | ||||
-rw-r--r-- | lib/autouse.t | 5 | ||||
-rw-r--r-- | lib/dumpvar.t | 5 | ||||
-rw-r--r-- | lib/overload.t | 5 |
5 files changed, 25 insertions, 0 deletions
@@ -3,6 +3,11 @@ BEGIN { chdir 't' if -d 't'; @INC = '../lib'; + require Config; + if (($Config::Config{'extensions'} !~ /\bList::Util\b/) ){ + print "1..0 # Skip -- Perl configured without List::Util module\n"; + exit 0; + } } # symbolic references used later diff --git a/lib/Dumpvalue.t b/lib/Dumpvalue.t index d1af109f60..015830487b 100644 --- a/lib/Dumpvalue.t +++ b/lib/Dumpvalue.t @@ -7,6 +7,11 @@ BEGIN { print "1..0 # skip: EBCDIC\n"; exit 0; } + require Config; + if (($Config::Config{'extensions'} !~ /\bList::Util\b/) ){ + print "1..0 # Skip -- Perl configured without List::Util module\n"; + exit 0; + } } use vars qw( $foo @bar %baz ); diff --git a/lib/autouse.t b/lib/autouse.t index bc8e401f6b..cc7c41a325 100644 --- a/lib/autouse.t +++ b/lib/autouse.t @@ -3,6 +3,11 @@ BEGIN { chdir 't' if -d 't'; @INC = '../lib'; + require Config; + if (($Config::Config{'extensions'} !~ /\bList::Util\b/) ){ + print "1..0 # Skip -- Perl configured without List::Util module\n"; + exit 0; + } } use Test; diff --git a/lib/dumpvar.t b/lib/dumpvar.t index f13bcee9ac..eb0fe315c7 100644 --- a/lib/dumpvar.t +++ b/lib/dumpvar.t @@ -3,6 +3,11 @@ BEGIN { chdir 't' if -d 't'; @INC = '../lib'; + require Config; + if (($Config::Config{'extensions'} !~ /\bList::Util\b/) ){ + print "1..0 # Skip -- Perl configured without List::Util module\n"; + exit 0; + } } use strict; diff --git a/lib/overload.t b/lib/overload.t index 669b4bc78a..e21e60b69e 100644 --- a/lib/overload.t +++ b/lib/overload.t @@ -3,6 +3,11 @@ BEGIN { chdir 't' if -d 't'; @INC = '../lib'; + require Config; + if (($Config::Config{'extensions'} !~ /\bList::Util\b/) ){ + print "1..0 # Skip -- Perl configured without List::Util module\n"; + exit 0; + } } package Oscalar; |