From ad6f26f3b9f0e428020d05667987556f8fcbec2f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 24 Nov 2019 00:22:34 +0000 Subject: tests: use File::Temp->newdir instead of tempdir() We'll also introduce a tmpdir() API to give tempdirs consistent names. --- t/psgi_v2.t | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 't/psgi_v2.t') diff --git a/t/psgi_v2.t b/t/psgi_v2.t index c7550e2d..1163e2bf 100644 --- a/t/psgi_v2.t +++ b/t/psgi_v2.t @@ -5,7 +5,6 @@ use warnings; use Test::More; require './t/common.perl'; require_git(2.6); -use File::Temp qw/tempdir/; use PublicInbox::MIME; use PublicInbox::Config; use PublicInbox::WWW; @@ -18,7 +17,7 @@ foreach my $mod (@mods) { } use_ok($_) for @mods; use_ok 'PublicInbox::V2Writable'; -my $inboxdir = tempdir('pi-v2_dupes-XXXXXX', TMPDIR => 1, CLEANUP => 1); +my ($inboxdir, $for_destroy) = tmpdir(); my $ibx = { inboxdir => $inboxdir, name => 'test-v2writable', -- cgit v1.2.3-24-ge0c7