Subject: | t/compat/inc-propagation.t logic error testing taint mode? |
t/compat/inc-propagation.t implies that it tests the propagation of @INC from the harness
to the test for both taint mode as well as non-taint mode.
However the file inc_check_taint.t.tmp (which does indeed run in taint mode)
that is generated to do the test has for the @INC path, the basic paths, plus PERL5LIB
... yet ... PERL5LIB is not supposed to be included in taint mode. (perlrun)
(Compare the output of perl -V and perl -T -V)
So it seems the taint test is not realistic.
It only ends up differing from the non taint test by the exclusion of the '.' path
It should also exclude PERL5LIB generate paths
While I have been able to explicitly test all the above by adding print statements
to the inc_check_taint.t.tmp code via the inc-propagation.t code that generates that file,
I do not understand the Test::Harness code that invokes the test well enough to figure out
why @INC is included in PERL5LIB in this case so I can not at this time suggest a fix. (sorry)
All this work was done on a fresh install of perl 5.8.8 plus Bundle::CPAN 1.857 on solaris 9
'prove' was the version from Test::Harness 3.0.7