Subject: | t/tainted.t intermittently fails |
Date: | Wed, 7 Dec 2016 15:41:58 +0000 |
To: | bug-Scalar-List-Utils [...] rt.cpan.org |
From: | Dave Mitchell <davem [...] iabyn.com> |
In the perl core, cpan/Scalar-List-Utils/t/tainted.t is intermittently
failing, because it chooses a random element of %ENV (skipping keys
starting with /^PERL/) and checks that it is tainted.
However, Test::Simple these days adds these to %ENV:
$ENV{TEST_ACTIVE} ||= 1;
$ENV{TEST2_ACTIVE} = 1;
which won't be tainted. So either /^PERL/ needs changing to
/^(PERL|TEST)/, or more robustly, perhaps it shouldn't be using %ENV as a
source of known taintedness, and maybe use $^X instead?
--
Fire extinguisher (n) a device for holding open fire doors.