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/cgi.t | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 't/cgi.t') diff --git a/t/cgi.t b/t/cgi.t index 3c09ecd6..62cea499 100644 --- a/t/cgi.t +++ b/t/cgi.t @@ -6,9 +6,8 @@ use strict; use warnings; use Test::More; use Email::MIME; -use File::Temp qw/tempdir/; require './t/common.perl'; -my $tmpdir = tempdir('pi-cgi-XXXXXX', TMPDIR => 1, CLEANUP => 1); +my ($tmpdir, $for_destroy) = tmpdir(); my $home = "$tmpdir/pi-home"; my $pi_home = "$home/.public-inbox"; my $pi_config = "$pi_home/config"; -- cgit v1.2.3-24-ge0c7