[Bast-commits] r9476 - DBIx-Class/0.08/trunk/t/inflate
ribasushi at dev.catalyst.perl.org
ribasushi at dev.catalyst.perl.org
Mon May 31 15:21:20 GMT 2010
Author: ribasushi
Date: 2010-05-31 16:21:20 +0100 (Mon, 31 May 2010)
New Revision: 9476
Modified:
DBIx-Class/0.08/trunk/t/inflate/datetime_mssql.t
Log:
Skip failing tests on old DBD
Modified: DBIx-Class/0.08/trunk/t/inflate/datetime_mssql.t
===================================================================
--- DBIx-Class/0.08/trunk/t/inflate/datetime_mssql.t 2010-05-31 15:13:28 UTC (rev 9475)
+++ DBIx-Class/0.08/trunk/t/inflate/datetime_mssql.t 2010-05-31 15:21:20 UTC (rev 9476)
@@ -1,5 +1,5 @@
use strict;
-use warnings;
+use warnings;
use Test::More;
use Test::Exception;
@@ -36,6 +36,7 @@
my $schema;
+SKIP:
for my $connect_info (@connect_info) {
my ($dsn, $user, $pass) = @$connect_info;
@@ -45,6 +46,15 @@
on_connect_call => 'datetime_setup'
});
+ {
+ my $w;
+ local $SIG{__WARN__} = sub { $w = shift };
+ $schema->storage->ensure_connected;
+ if ($w =~ /Your DBD::Sybase is too old to support DBIx::Class::InflateColumn::DateTime/) {
+ skip "Skipping tests on old DBD::Sybase " . DBD::Sybase->VERSION, 1;
+ }
+ }
+
my $guard = Scope::Guard->new(\&cleanup);
# coltype, column, datehash
More information about the Bast-commits
mailing list