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
Download (untitled) / with headers
text/plain 305b
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.
Download (untitled) / with headers
text/plain 112b
I came to report this as well. We have tests with a -T on the shebang, so the PERL5LIB doesn't exist for those.
Download (untitled) / with headers
text/plain 483b
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
Download (untitled) / with headers
text/plain 412b
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


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.