X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fmsgmap.t;h=f78070cc959d47db729dbd753e6534550db318aa;hb=95bdac7f09c69036efed537a4d03d5bdd2ae4eb6;hp=20985ce8cb56be0b9d280660a75eaca6ac27739f;hpb=2752bc2b24d1e2c96c18b5f18372fc25e0ffc1fa;p=public-inbox.git diff --git a/t/msgmap.t b/t/msgmap.t index 20985ce8..f78070cc 100644 --- a/t/msgmap.t +++ b/t/msgmap.t @@ -1,17 +1,12 @@ -# Copyright (C) 2015-2018 all contributors +# Copyright (C) 2015-2020 all contributors # License: AGPL-3.0+ use strict; use warnings; use Test::More; -use File::Temp qw/tempdir/; - -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 = tempdir('pi-msgmap-XXXXXX', TMPDIR => 1, CLEANUP => 1); +my ($tmpdir, $for_destroy) = tmpdir(); my $d = PublicInbox::Msgmap->new($tmpdir, 1); my %mid2num;