From 232d8f2cae54a66db3e497c70effcd01b1569379 Mon Sep 17 00:00:00 2001 From: Piotr Roszatycki Date: Sat, 11 Jan 2014 20:13:19 +0000 Subject: Use $ENV{TMPDIR} if defined --- t/old-base.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't') diff --git a/t/old-base.t b/t/old-base.t index 677d511..31086f5 100644 --- a/t/old-base.t +++ b/t/old-base.t @@ -654,7 +654,7 @@ sub newlocal_test { ($^O eq 'qnx' ? '/usr/bin/fullpath -t' : ($^O eq 'VMS' ? 'show default' : (-e '/bin/pwd' ? '/bin/pwd' : 'pwd')))); - my $tmpdir = ($^O eq 'MSWin32' ? $ENV{TEMP} : '/tmp'); + my $tmpdir = ($^O eq 'MSWin32' ? $ENV{TEMP} : $ENV{TMPDIR} || '/tmp'); if ( $^O eq 'qnx' ) { $tmpdir = `/usr/bin/fullpath -t $tmpdir`; chomp $tmpdir; -- cgit v1.2.1