From: Marcus Holland-Moritz Date: Mon, 30 Aug 2004 18:36:18 +0000 (+0000) Subject: Skip Time::HiRes tests if configured without that module. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=df2f6354ec75c3a7d7d07975479b72910dca7931;p=p5sagit%2Fp5-mst-13.2.git Skip Time::HiRes tests if configured without that module. p4raw-id: //depot/perl@23246 --- diff --git a/ext/Time/HiRes/t/HiRes.t b/ext/Time/HiRes/t/HiRes.t index 69be80b..5274cef 100644 --- a/ext/Time/HiRes/t/HiRes.t +++ b/ext/Time/HiRes/t/HiRes.t @@ -4,6 +4,11 @@ BEGIN { if ($ENV{PERL_CORE}) { chdir 't' if -d 't'; @INC = '../lib'; + require Config; import Config; + if (" $Config{'extensions'} " !~ m[ Time/HiRes ]) { + print "1..0 # Skip -- Perl configured without Time::HiRes module\n"; + exit 0; + } } }