From 78cd8b71ec0d7665c422181192afa2819a5d887d Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Tue, 22 Jun 2004 09:57:23 +0000 Subject: Skip tests if List::Util not built p4raw-id: //depot/perl@22967 --- lib/autouse.t | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/autouse.t') 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; -- cgit v1.2.1