]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/msgmap.t
testcommon: add require_mods method and use it
[public-inbox.git] / t / msgmap.t
index 6edeed5645fcef62dcaa92a991e2861dc72df990..197b0e554c297be0a76bce6e2b8140864088ff5c 100644 (file)
@@ -4,12 +4,7 @@ use strict;
 use warnings;
 use Test::More;
 use PublicInbox::TestCommon;
-
-foreach my $mod (qw(DBD::SQLite)) {
-       eval "require $mod";
-       plan skip_all => "$mod missing for nntpd.t" if $@;
-}
-
+require_mods('DBD::SQLite');
 use_ok 'PublicInbox::Msgmap';
 my ($tmpdir, $for_destroy) = tmpdir();
 my $d = PublicInbox::Msgmap->new($tmpdir, 1);