change warning check to death check (new storage exceptions)
[dbsrgits/DBIx-Class.git] / t / cdbi-t / 98-failure.t
index fe41b05..4521b9a 100644 (file)
@@ -6,8 +6,13 @@ use Test::More;
 #----------------------------------------------------------------------
 
 BEGIN {
-       eval "use DBD::SQLite";
-       plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 7);
+  eval "use DBIx::Class::CDBICompat;";
+  if ($@) {
+    plan (skip_all => 'Class::Trigger and DBIx::ContextualFetch required');
+    next;
+  }
+  eval "use DBD::SQLite";
+  plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 7);
 }
 
 use lib 't/testlib';