Skip to content

Commit 4ab1d4a

Browse files
committed
Work around File::Spec issue on ancient versions
1 parent 384a530 commit 4ab1d4a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/lib/MBTest.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ sub import {
144144
# Setup a temp directory
145145
sub tmpdir {
146146
my ($self, @args) = @_;
147+
local $ENV{TMPDIR} = $ENV{TMPDIR} || '';
147148
my $dir = $ENV{PERL_CORE} ? MBTest->original_cwd : File::Spec->tmpdir;
148149
return File::Temp::tempdir('MB-XXXXXXXX', CLEANUP => 1, DIR => $dir, @args);
149150
}

0 commit comments

Comments
 (0)