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/v2-add-remove-add.t | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 't/v2-add-remove-add.t') diff --git a/t/v2-add-remove-add.t b/t/v2-add-remove-add.t index 438fe3db..c0dec300 100644 --- a/t/v2-add-remove-add.t +++ b/t/v2-add-remove-add.t @@ -4,7 +4,6 @@ use strict; use warnings; use Test::More; use PublicInbox::MIME; -use File::Temp qw/tempdir/; require './t/common.perl'; require_git(2.6); @@ -13,7 +12,7 @@ foreach my $mod (qw(DBD::SQLite Search::Xapian)) { plan skip_all => "$mod missing for v2-add-remove-add.t" if $@; } use_ok 'PublicInbox::V2Writable'; -my $inboxdir = tempdir('pi-add-remove-add-XXXXXX', TMPDIR => 1, CLEANUP => 1); +my ($inboxdir, $for_destroy) = tmpdir(); my $ibx = { inboxdir => "$inboxdir/v2", name => 'test-v2writable', -- cgit v1.2.3-24-ge0c7