diff options
author | Eric Wong <e@80x24.org> | 2019-11-24 00:22:34 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-11-24 21:46:55 +0000 |
commit | ad6f26f3b9f0e428020d05667987556f8fcbec2f (patch) | |
tree | 56a26871d3f63b3bc057a5ecb0c326d6c1dd3695 /t/indexlevels-mirror.t | |
parent | 2a3e3a0469f54f6a4f80bf04614e5ddd794a6c5e (diff) | |
download | public-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/indexlevels-mirror.t')
-rw-r--r-- | t/indexlevels-mirror.t | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/t/indexlevels-mirror.t b/t/indexlevels-mirror.t index d129237e..f1c338e1 100644 --- a/t/indexlevels-mirror.t +++ b/t/indexlevels-mirror.t @@ -6,7 +6,6 @@ use Test::More; use PublicInbox::MIME; use PublicInbox::Inbox; use PublicInbox::InboxWritable; -use File::Temp qw/tempdir/; require PublicInbox::Admin; require './t/common.perl'; my $PI_TEST_VERSION = $ENV{PI_TEST_VERSION} || 2; @@ -32,7 +31,7 @@ my $mime = PublicInbox::MIME->create( sub import_index_incremental { my ($v, $level) = @_; my $this = "pi-$v-$level-indexlevels"; - my $tmpdir = tempdir("$this-tmp-XXXXXX", TMPDIR => 1, CLEANUP => 1); + my ($tmpdir, $for_destroy) = tmpdir(); my $ibx = PublicInbox::Inbox->new({ inboxdir => "$tmpdir/testbox", name => $this, |