From: Nicholas Clark Date: Tue, 22 Jun 2004 09:56:59 +0000 (+0000) Subject: Skip test if Data::Dumper not built X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b5cc9730721234f703470e46d73591d9849c4cd0;p=p5sagit%2Fp5-mst-13.2.git Skip test if Data::Dumper not built p4raw-id: //depot/perl@22966 --- diff --git a/lib/Tie/RefHash.t b/lib/Tie/RefHash.t index 55fde14..a855446 100644 --- a/lib/Tie/RefHash.t +++ b/lib/Tie/RefHash.t @@ -13,6 +13,11 @@ BEGIN { chdir 't' if -d 't'; @INC = '.'; push @INC, '../lib'; + require Config; + if (($Config::Config{'extensions'} !~ /\bData::Dumper\b/) ){ + print "1..0 # Skip -- Perl configured without Data::Dumper module\n"; + exit 0; + } } use strict;