about summary refs log tree commit homepage
path: root/t/httpd-https.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-11-24 00:22:34 +0000
committerEric Wong <e@80x24.org>2019-11-24 21:46:55 +0000
commitad6f26f3b9f0e428020d05667987556f8fcbec2f (patch)
tree56a26871d3f63b3bc057a5ecb0c326d6c1dd3695 /t/httpd-https.t
parent2a3e3a0469f54f6a4f80bf04614e5ddd794a6c5e (diff)
downloadpublic-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/httpd-https.t')
-rw-r--r--t/httpd-https.t3
1 files changed, 1 insertions, 2 deletions
diff --git a/t/httpd-https.t b/t/httpd-https.t
index 81a11108..de74c20e 100644
--- a/t/httpd-https.t
+++ b/t/httpd-https.t
@@ -3,7 +3,6 @@
 use strict;
 use warnings;
 use Test::More;
-use File::Temp qw(tempdir);
 use Socket qw(SOCK_STREAM IPPROTO_TCP SOL_SOCKET);
 # IO::Poll is part of the standard library, but distros may split them off...
 foreach my $mod (qw(IO::Socket::SSL IO::Poll)) {
@@ -20,7 +19,7 @@ use_ok 'PublicInbox::TLS';
 use_ok 'IO::Socket::SSL';
 require './t/common.perl';
 my $psgi = "./t/httpd-corner.psgi";
-my $tmpdir = tempdir('pi-httpd-https-XXXXXX', TMPDIR => 1, CLEANUP => 1);
+my ($tmpdir, $for_destroy) = tmpdir();
 my $err = "$tmpdir/stderr.log";
 my $out = "$tmpdir/stdout.log";
 my $https = tcp_server();