]> 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 7fcd131afd8889d866844b74180b7821ec093fd5..197b0e554c297be0a76bce6e2b8140864088ff5c 100644 (file)
@@ -3,13 +3,8 @@
 use strict;
 use warnings;
 use Test::More;
-require './t/common.perl';
-
-foreach my $mod (qw(DBD::SQLite)) {
-       eval "require $mod";
-       plan skip_all => "$mod missing for nntpd.t" if $@;
-}
-
+use PublicInbox::TestCommon;
+require_mods('DBD::SQLite');
 use_ok 'PublicInbox::Msgmap';
 my ($tmpdir, $for_destroy) = tmpdir();
 my $d = PublicInbox::Msgmap->new($tmpdir, 1);