From: Michael G Schwern Date: Fri, 14 Mar 2008 01:32:02 +0000 (+0000) Subject: Fix the skip condition. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=03dc7a51297ef94935ec776ee35421a1e131fdbb;p=dbsrgits%2FDBIx-Class-Historic.git Fix the skip condition. --- diff --git a/t/cdbi-t/24-meta_info.t b/t/cdbi-t/24-meta_info.t index 24c4c74..93268e9 100644 --- a/t/cdbi-t/24-meta_info.t +++ b/t/cdbi-t/24-meta_info.t @@ -1,12 +1,15 @@ #!/usr/bin/perl -w use strict; +use Test::More; + BEGIN { - eval "require Time::Piece"; - use Test::More skip_all => "Time::Piece required for this test"; + plan skip_all => "Time::Piece required for this test" + unless eval { require Time::Piece }; + + plan tests => 12; } -use Test::More tests => 12; use Test::Warn; package Temp::DBI;