-
Notifications
You must be signed in to change notification settings - Fork 52
Closed
Description
The LWP::ConsoleLogger test suite fails on some of my smoker systems, caused by a warning originating in WWW::Mechanize:
Use of uninitialized value in open at /opt/perl-5.41.5/lib/site_perl/5.41.5/WWW/Mechanize.pm line 1650.
It seems that this warning happens because at least one value in %INC is undef, which results in an open call on an undefined filename.
The undefined value belongs to the Mojo/Reactor/EV.pm key and it can also be reproduced by this oneliner:
$ perl5.41.5 -MMojo::Reactor -MData::Dumper -e 'Mojo::Reactor::detect(); $Data::Dumper::Sortkeys=1; warn Dumper(\%INC)'
...
'Mojo/Reactor.pm' => '/opt/perl-5.41.5/lib/site_perl/5.41.5/Mojo/Reactor.pm',
'Mojo/Reactor/EV.pm' => undef,
'Mojo/Reactor/Poll.pm' => '/opt/perl-5.41.5/lib/site_perl/5.41.5/Mojo/Reactor/Poll.pm',
...
In any case, probably within the for loop something like next if !defined $filename should be done.
Metadata
Metadata
Assignees
Labels
No labels