diff options
author | Craig A. Berry <craigberry@mac.com> | 2011-04-03 08:10:43 -0500 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2011-04-15 16:13:29 -0500 |
commit | d4e61d91175f056c71693f8f47149472d0f4c18d (patch) | |
tree | a51b4ab79773b647748fe0f2f3ae3329e3aaabbf /cpan/ExtUtils-MakeMaker | |
parent | 17148a1aa5fa357fd3e5850baca9d6eae778d7b9 (diff) | |
download | perl-d4e61d91175f056c71693f8f47149472d0f4c18d.tar.gz |
Don't copy all of %ENV in prereq.t.
It's sufficient for purposes of enabling prerequisite warnings to
set a localized $ENV{PERL_CORE} to undef rather than making a local
copy of the entire %ENV hash. This makes the test pass on VMS,
where copying %ENV in toto is not supported.
This fixes a smoke failure, so borrow it from upstream, where it's
already released as part of MM 6.57_10. 6.58 will contain an
additional tweak that works with Perl 5.6, but no need to worry
about that here.
Diffstat (limited to 'cpan/ExtUtils-MakeMaker')
-rw-r--r-- | cpan/ExtUtils-MakeMaker/t/prereq.t | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cpan/ExtUtils-MakeMaker/t/prereq.t b/cpan/ExtUtils-MakeMaker/t/prereq.t index 13e354aae7..094fee75bf 100644 --- a/cpan/ExtUtils-MakeMaker/t/prereq.t +++ b/cpan/ExtUtils-MakeMaker/t/prereq.t @@ -35,9 +35,8 @@ ok( chdir 'Big-Dummy', "chdir'd to Big-Dummy" ) || local $SIG{__WARN__} = sub { $warnings .= join '', @_; }; - # prerequisite warnings are disbled while building the perl core: - local %ENV = %ENV; - delete $ENV{PERL_CORE}; + # prerequisite warnings are disabled while building the perl core: + local $ENV{PERL_CORE} = undef; WriteMakefile( NAME => 'Big::Dummy', |