summaryrefslogtreecommitdiff
path: root/cpan/Scalar-List-Utils
diff options
context:
space:
mode:
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2017-01-26 09:17:41 +0000
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2017-01-26 09:22:06 +0000
commita76614debec3c698069bcf0fa012318ed15461cc (patch)
treeadb9b95d9691fb564a95f837d199bd18b2b5cd78 /cpan/Scalar-List-Utils
parent98756b38e49e02093a0188c5c8e23433d6e317e7 (diff)
downloadperl-a76614debec3c698069bcf0fa012318ed15461cc.tar.gz
Cherry-pick Scalar-List-Utils tainted.t fix from upstream
It's fixed properly upstream, by using $^X instead of %ENV, so use that instead of the now-expired skip.
Diffstat (limited to 'cpan/Scalar-List-Utils')
-rw-r--r--cpan/Scalar-List-Utils/t/tainted.t11
1 files changed, 3 insertions, 8 deletions
diff --git a/cpan/Scalar-List-Utils/t/tainted.t b/cpan/Scalar-List-Utils/t/tainted.t
index 9e0df5eaaf..fb83c86c32 100644
--- a/cpan/Scalar-List-Utils/t/tainted.t
+++ b/cpan/Scalar-List-Utils/t/tainted.t
@@ -13,15 +13,10 @@ my $var = 2;
ok( !tainted($var), 'known variable');
-my $key = (grep { !/^PERL/ } keys %ENV)[0];
+ok( tainted($^X), 'interpreter variable');
-SKIP: { # Skip these to get blead to pass, but the skip expires soon
-skip 'is randomly failing', 2 unless $] gt 5.025009;
-ok( tainted($ENV{$key}), 'environment variable');
-
-$var = $ENV{$key};
-ok( tainted($var), 'copy of environment variable');
-}
+$var = $^X;
+ok( tainted($var), 'copy of interpreter variable');
{
package Tainted;