summaryrefslogtreecommitdiff
path: root/cpan/List-Util
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2012-11-21 09:45:06 +0100
committerYves Orton <demerphq@gmail.com>2012-11-21 09:48:49 +0100
commit2a5bd8731bfdd9308c12fac06faa637e38b5eeb5 (patch)
tree07c84f2154c1b7f75eb43d61e757383eac065d60 /cpan/List-Util
parent5e1c1ee37a1b35d7aff2dbbf2a598904f39d5c89 (diff)
downloadperl-2a5bd8731bfdd9308c12fac06faa637e38b5eeb5.tar.gz
fix a hash order dependency in cpan/List-Util tests
cpan/List-Util/t/tainted.t fails if the environment variable it access is PERL5LIB as that is set inside the process. We filter out env vars starting with PERL and bump the version numbers to 1.25_01.
Diffstat (limited to 'cpan/List-Util')
-rw-r--r--cpan/List-Util/Changes5
-rw-r--r--cpan/List-Util/lib/List/Util.pm2
-rw-r--r--cpan/List-Util/lib/List/Util/XS.pm2
-rw-r--r--cpan/List-Util/lib/Scalar/Util.pm2
-rw-r--r--cpan/List-Util/t/tainted.t2
5 files changed, 9 insertions, 4 deletions
diff --git a/cpan/List-Util/Changes b/cpan/List-Util/Changes
index f737c1da5a..1fcd9f6102 100644
--- a/cpan/List-Util/Changes
+++ b/cpan/List-Util/Changes
@@ -1,3 +1,8 @@
+1.25_01 -- Wed Nov 21 09:47
+
+ * Fix a hash order dependency bug t/tainted.t
+ (Currently this is a core only version to fix perl5 smokes)
+
1.25 -- Sat Mar 24 13:10:13 UTC 2012
* Restore back-compat. to perl 5.6 (thanks to Zefram)
diff --git a/cpan/List-Util/lib/List/Util.pm b/cpan/List-Util/lib/List/Util.pm
index 033ef505c0..c07e2d8ab0 100644
--- a/cpan/List-Util/lib/List/Util.pm
+++ b/cpan/List-Util/lib/List/Util.pm
@@ -13,7 +13,7 @@ require Exporter;
our @ISA = qw(Exporter);
our @EXPORT_OK = qw(first min max minstr maxstr reduce sum shuffle);
-our $VERSION = "1.25";
+our $VERSION = "1.25_01";
our $XS_VERSION = $VERSION;
$VERSION = eval $VERSION;
diff --git a/cpan/List-Util/lib/List/Util/XS.pm b/cpan/List-Util/lib/List/Util/XS.pm
index d46853ca23..b196e7dbb5 100644
--- a/cpan/List-Util/lib/List/Util/XS.pm
+++ b/cpan/List-Util/lib/List/Util/XS.pm
@@ -2,7 +2,7 @@ package List::Util::XS;
use strict;
use List::Util;
-our $VERSION = "1.25"; # FIXUP
+our $VERSION = "1.25_01"; # FIXUP
$VERSION = eval $VERSION; # FIXUP
1;
diff --git a/cpan/List-Util/lib/Scalar/Util.pm b/cpan/List-Util/lib/Scalar/Util.pm
index ab97fe5446..4d034fcb24 100644
--- a/cpan/List-Util/lib/Scalar/Util.pm
+++ b/cpan/List-Util/lib/Scalar/Util.pm
@@ -12,7 +12,7 @@ require List::Util; # List::Util loads the XS
our @ISA = qw(Exporter);
our @EXPORT_OK = qw(blessed dualvar reftype weaken isweak tainted readonly openhandle refaddr isvstring looks_like_number set_prototype);
-our $VERSION = "1.25";
+our $VERSION = "1.25_01";
$VERSION = eval $VERSION;
our @EXPORT_FAIL;
diff --git a/cpan/List-Util/t/tainted.t b/cpan/List-Util/t/tainted.t
index ab40aa69fe..8666117fe4 100644
--- a/cpan/List-Util/t/tainted.t
+++ b/cpan/List-Util/t/tainted.t
@@ -26,7 +26,7 @@ my $var = 2;
ok( !tainted($var), 'known variable');
-my $key = (keys %ENV)[0];
+my $key = (grep { !/^PERL/ } keys %ENV)[0];
ok( tainted($ENV{$key}), 'environment variable');