From: Michael G Schwern Date: Thu, 13 Mar 2008 19:04:13 +0000 (+0000) Subject: Make this test depend on having DeepAbstractSearch installed. X-Git-Tag: v0.08240~526 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d526af80a011817af5962d7de4948bc4e83c9e45;p=dbsrgits%2FDBIx-Class.git Make this test depend on having DeepAbstractSearch installed. --- 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";