Skip Menu |

This queue is for tickets about the Test-Harness CPAN distribution.

Report information
The Basics
Id: 86660
Status: resolved
Priority: 0/
Queue: Test-Harness

People
Owner: Nobody in particular
Requestors: STEVENL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 3.28
Fixed in: (no value)



Subject: Warning emitted by TAP::Parser::SourceHandler::Perl
This is the warning message: Use of uninitialized value in split at C:/Perl/strawberry-5.18.0.1/perl/lib/TAP/Parser/SourceHandler/Perl.pm line 170. The warning occurs in `_mangle_switches` method. The uninitialized value is $ENV{PERL5LIB} because I do not have the PERL5LIB environment variable set.
I came to report this as well. We have tests with a -T on the shebang, so the PERL5LIB doesn't exist for those.
I have noticed this issue as well in v 3.28. To fix it, the line following line in the function In the function _mangle_switches: my @perl5lib = split /$Config{path_sep}/, $ENV{PERL5LIB}; could be replaced by: my @perl5lib = split /$Config{path_sep}/, $ENV{PERL5LIB} || ''; Note that $ENV{PERL5LIB} and other environment variables, $ENV{HARNESS_PERL} and $ENV{PERL5OPT}, are used in several places of the module. It might be worth checking those as well. Cheers, Florent
On Wed Jul 03 01:31:53 2013, STEVENL wrote: Show quoted text
> This is the warning message: > > Use of uninitialized value in split at C:/Perl/strawberry- > 5.18.0.1/perl/lib/TAP/Parser/SourceHandler/Perl.pm line 170. > > The warning occurs in `_mangle_switches` method. The uninitialized > value is $ENV{PERL5LIB} because I do not have the PERL5LIB environment > variable set.
This should be fixed in Test-Harness 3.29. Leon