X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi-DeepAbstractSearch%2F01_search.t;h=ddc953c6c06a8e4be473b6b18505184c60d8c223;hb=456e850065d350d306858bcac1281682e18b33bb;hp=825b67c065184124239fa58de76136982bf45199;hpb=902133a323b09153549d1a54983ae3f98da2c4ec;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/cdbi-DeepAbstractSearch/01_search.t b/t/cdbi-DeepAbstractSearch/01_search.t index 825b67c..ddc953c 100755 --- a/t/cdbi-DeepAbstractSearch/01_search.t +++ b/t/cdbi-DeepAbstractSearch/01_search.t @@ -2,9 +2,13 @@ use strict; use Test::More; BEGIN { - eval "use DBD::SQLite"; - plan $@ ? (skip_all => 'needs DBD::SQLite for testing') - : (tests => 19); + plan skip_all => 'needs DBD::SQLite for testing' + unless eval { require DBD::SQLite }; + + plan skip_all => 'needs Class::DBI::Plugin::DeepAbstractSearch' + unless eval { require Class::DBI::Plugin::DeepAbstractSearch }; + + plan tests => 19; } my $DB = "t/testdb";