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/httpd-unix.t | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 't/httpd-unix.t') diff --git a/t/httpd-unix.t b/t/httpd-unix.t index 5ec70fd8..f7881cfa 100644 --- a/t/httpd-unix.t +++ b/t/httpd-unix.t @@ -12,9 +12,8 @@ foreach my $mod (qw(Plack::Util Plack::Builder HTTP::Date HTTP::Status)) { plan skip_all => "$mod missing for httpd-unix.t" if $@; } -use File::Temp qw/tempdir/; use IO::Socket::UNIX; -my $tmpdir = tempdir('httpd-unix-XXXXXX', TMPDIR => 1, CLEANUP => 1); +my ($tmpdir, $for_destroy) = tmpdir(); my $unix = "$tmpdir/unix.sock"; my $psgi = './t/httpd-corner.psgi'; my $out = "$tmpdir/out.log"; -- cgit v1.2.3-24-ge0c7