X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fnntpd-tls.t;h=bbcc04c0c0e063a35b1d7b018831b3d6ae9c0469;hb=ad6f26f3b9f0e428020d05667987556f8fcbec2f;hp=5d170b785fcf0938b1eb6ed0c3a2e0455ef95f60;hpb=2a3e3a0469f54f6a4f80bf04614e5ddd794a6c5e;p=public-inbox.git diff --git a/t/nntpd-tls.t b/t/nntpd-tls.t index 5d170b78..bbcc04c0 100644 --- a/t/nntpd-tls.t +++ b/t/nntpd-tls.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 and Net::NNTP are part of the standard library, but # distros may split them off... @@ -34,7 +33,7 @@ eval { require Compress::Raw::Zlib } or $need_zlib = 'Compress::Raw::Zlib missing'; my $version = 2; # v2 needs newer git require_git('2.6') if $version >= 2; -my $tmpdir = tempdir('pi-nntpd-tls-XXXXXX', TMPDIR => 1, CLEANUP => 1); +my ($tmpdir, $for_destroy) = tmpdir(); my $err = "$tmpdir/stderr.log"; my $out = "$tmpdir/stdout.log"; my $inboxdir = "$tmpdir";