]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/over.t
testcommon: add require_mods method and use it
[public-inbox.git] / t / over.t
index 5e33a0b0dc20aa5cc097923da91fc1d72f2b60aa..4e630bcd37d7ab6cc8f79ffd2e4c503f81f7dee3 100644 (file)
--- a/t/over.t
+++ b/t/over.t
@@ -5,11 +5,7 @@ use warnings;
 use Test::More;
 use Compress::Zlib qw(compress);
 use PublicInbox::TestCommon;
-foreach my $mod (qw(DBD::SQLite)) {
-       eval "require $mod";
-       plan skip_all => "$mod missing for over.t" if $@;
-}
-
+require_mods('DBD::SQLite');
 use_ok 'PublicInbox::OverIdx';
 my ($tmpdir, $for_destroy) = tmpdir();
 my $over = PublicInbox::OverIdx->new("$tmpdir/over.sqlite3");