sanko / anyevent-bittorrent

Basic, Easily Extended BitTorrent Client built on AnyEvent
https://metacpan.org/release/AnyEvent-BitTorrent
Other
3 stars 0 forks source link

. removed from @INC #2

Open eserte opened 7 years ago

eserte commented 7 years ago

In perl 5.26 the dot is removed from @INC, causing the test suite to fail:

t/000_tests/005_local.t .... Can't locate t/800_utils/Tracker/HTTP.pm in @INC (you may need to install the t::800_utils::Tracker::HTTP module) (@INC contains: ../../../lib ../../lib /home/cpansand/.cpan/build/2017051306/AnyEvent-BitTorrent-1.0.2-0/blib/arch /home/cpansand/.cpan/build/2017051306/AnyEvent-BitTorrent-1.0.2-0/blib/lib /opt/perl-5.26.0-RC1/lib/site_perl/5.26.0/x86_64-linux /opt/perl-5.26.0-RC1/lib/site_perl/5.26.0 /opt/perl-5.26.0-RC1/lib/5.26.0/x86_64-linux /opt/perl-5.26.0-RC1/lib/5.26.0) at t/000_tests/005_local.t line 13.
t/000_tests/005_local.t .... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 

Note that currently this happens only if Build test is called from commandline, but not if it called within a CPAN.pm session with default configuration.

eserte commented 7 years ago

Adding

use lib '.';

to the failing test script fixes the problem.

sanko commented 7 years ago

I suppose this is one way to get a lot of people to upload new versions of old dists. Thanks for the heads up! :)