about summary refs log tree commit homepage
path: root/t/v1reindex.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-11-24 00:22:34 +0000
committerEric Wong <e@80x24.org>2019-11-24 21:46:55 +0000
commitad6f26f3b9f0e428020d05667987556f8fcbec2f (patch)
tree56a26871d3f63b3bc057a5ecb0c326d6c1dd3695 /t/v1reindex.t
parent2a3e3a0469f54f6a4f80bf04614e5ddd794a6c5e (diff)
downloadpublic-inbox-ad6f26f3b9f0e428020d05667987556f8fcbec2f.tar.gz
tests: use File::Temp->newdir instead of tempdir()
We'll also introduce a tmpdir() API to give tempdirs
consistent names.
Diffstat (limited to 't/v1reindex.t')
-rw-r--r--t/v1reindex.t3
1 files changed, 1 insertions, 2 deletions
diff --git a/t/v1reindex.t b/t/v1reindex.t
index e3547753..c0e21a56 100644
--- a/t/v1reindex.t
+++ b/t/v1reindex.t
@@ -5,7 +5,6 @@ use warnings;
 use Test::More;
 use PublicInbox::MIME;
 use PublicInbox::ContentId qw(content_digest);
-use File::Temp qw/tempdir/;
 use File::Path qw(remove_tree);
 require './t/common.perl';
 require_git(2.6);
@@ -16,7 +15,7 @@ foreach my $mod (qw(DBD::SQLite Search::Xapian)) {
 }
 use_ok 'PublicInbox::SearchIdx';
 use_ok 'PublicInbox::Import';
-my $inboxdir = tempdir('pi-v1reindex-XXXXXX', TMPDIR => 1, CLEANUP => 1);
+my ($inboxdir, $for_destroy) = tmpdir();
 is(system(qw(git init -q --bare), $inboxdir), 0);
 my $ibx_config = {
         inboxdir => $inboxdir,