Skip to content

Commit

Permalink
Fix warning on Perl 5.8.8 that causes test failure in file.t
Browse files Browse the repository at this point in the history
Weird but true: on Perl 5.8.8, this gives a warning:

 perl -e 'use warnings; local $ENV{FOO} = undef' ;
 Use of uninitialized value in scalar assignment at -e line 1.

That is not generated on 5.8.9 or 5.10.0.  Because t/file.t is using
Test::FailWarnings this causes it to fail.
  • Loading branch information
plicease authored and rjbs committed Aug 8, 2015
1 parent 577d436 commit 2fe62cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Dist/Zilla/Tester.pm
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ sub minter { 'Dist::Zilla::Tester::_Minter' }

local @INC = map {; ref($_) ? $_ : File::Spec->rel2abs($_) } @INC;

local $ENV{DZIL_GLOBAL_CONFIG_ROOT} = $tester_arg->{global_config_root};
local $ENV{DZIL_GLOBAL_CONFIG_ROOT};
$ENV{DZIL_GLOBAL_CONFIG_ROOT} = $tester_arg->{global_config_root}
if defined $ENV{DZIL_GLOBAL_CONFIG_ROOT};

my $zilla = $self->$orig($arg);

Expand Down

0 comments on commit 2fe62cd

Please sign in to comment.