[Bast-commits] r7774 - DBIx-Class/0.08/trunk/t
ribasushi at dev.catalyst.perl.org
ribasushi at dev.catalyst.perl.org
Fri Oct 9 09:04:35 GMT 2009
Author: ribasushi
Date: 2009-10-09 09:04:35 +0000 (Fri, 09 Oct 2009)
New Revision: 7774
Modified:
DBIx-Class/0.08/trunk/t/94versioning.t
Log:
Skip versioning test on really old perls lacking Time::HiRes
Modified: DBIx-Class/0.08/trunk/t/94versioning.t
===================================================================
--- DBIx-Class/0.08/trunk/t/94versioning.t 2009-10-09 09:00:36 UTC (rev 7773)
+++ DBIx-Class/0.08/trunk/t/94versioning.t 2009-10-09 09:04:35 UTC (rev 7774)
@@ -5,7 +5,6 @@
use Test::More;
use File::Spec;
use File::Copy;
-use Time::HiRes qw/time sleep/;
#warn "$dsn $user $pass";
my ($dsn, $user, $pass);
@@ -16,6 +15,10 @@
plan skip_all => 'Set $ENV{DBICTEST_MYSQL_DSN}, _USER and _PASS to run this test'
unless ($dsn);
+ eval { require Time::HiRes }
+ || plan skip_all => 'Test needs Time::HiRes';
+ Time::HiRes->import(qw/time sleep/);
+
require DBIx::Class::Storage::DBI;
plan skip_all =>
'Test needs SQL::Translator ' . DBIx::Class::Storage::DBI->_sqlt_minimum_version
More information about the Bast-commits
mailing list