From: Nicholas Clark Date: Tue, 22 Jun 2004 09:57:23 +0000 (+0000) Subject: Skip tests if List::Util not built X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=78cd8b71ec0d7665c422181192afa2819a5d887d;p=p5sagit%2Fp5-mst-13.2.git Skip tests if List::Util not built p4raw-id: //depot/perl@22967 --- diff --git a/lib/DB.t b/lib/DB.t index e6fef9b..7e809be 100644 --- a/lib/DB.t +++ b/lib/DB.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; + } } # symbolic references used later diff --git a/lib/Dumpvalue.t b/lib/Dumpvalue.t index d1af109..0158304 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 bc8e401..cc7c41a 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 f13bcee..eb0fe31 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 669b4bc..e21e60b 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;