From: Graham Knop Date: Mon, 23 Dec 2013 15:28:08 +0000 (-0500) Subject: fix temp file and csh options in shell test X-Git-Tag: v2.000_001~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2Flocal-lib.git;a=commitdiff_plain;h=19e23dc8299042edc91e4b8875d788817579bf80 fix temp file and csh options in shell test --- diff --git a/t/shell.t b/t/shell.t index 5c8e12a..a663a2d 100644 --- a/t/shell.t +++ b/t/shell.t @@ -38,6 +38,7 @@ for my $shell ( }, { name => 'csh', + opt => '-f', }, { name => 'cmd', @@ -93,9 +94,10 @@ sub call_ll { local $ENV{SHELL} = $info->{shell}; - my $file = File::Temp->new('ll-test-script-XXXXX', - TMPDIR => 1, - SUFFIX => '.'.$info->{ext}, + my $file = File::Temp->new( + TEMPLATE => 'll-test-script-XXXXX', + TMPDIR => 1, + SUFFIX => '.'.$info->{ext}, ); $file->print(scalar `"$^X" $extra_lib -Mlocal::lib$option` . "\n");