Fix complete breakage of ddl_filename on certain paths
[dbsrgits/DBIx-Class.git] / t / cdbi / 22-deflate_order.t
index 5267ae0..cdb8c0d 100644 (file)
@@ -3,20 +3,13 @@ use strict;
 
 use Test::More;
 
-eval "use DBIx::Class::CDBICompat;";
+eval "use DBIx::Class::CDBICompat; use Time::Piece::MySQL;";
 if ($@) {
-    plan (skip_all => "Class::Trigger and DBIx::ContextualFetch required: $@");
-    next;
+    plan (skip_all => "Time::Piece::MySQL, Class::Trigger and DBIx::ContextualFetch required: $@");
 }
 
-eval { require Time::Piece::MySQL };
-plan skip_all => "Need Time::Piece::MySQL for this test" if $@;
-
 use lib 't/cdbi/testlib';
-eval { require 't/cdbi/testlib/Log.pm' };
-plan skip_all => "Need MySQL for this test" if $@;
-
-plan tests => 2;
+use_ok ('Log');
 
 package main;
 
@@ -29,3 +22,4 @@ $log->update;
 ok eval { $log->datetime_stamp }, "Have datetime after update";
 diag $@ if $@;
 
+done_testing;