Subject: | Tests fail with Perl 5 blead due to no-dot-by-default-in-@INC |
In Perl 5.26.0, '.' will no longer be found by default in @INC. Today I attempted to install ExtUtils-PkgConfig against Perl 5 blead via 'cpanm'. There were failures in two test files:
#####
$ /home/jkeenan/testing/blead/bin/perl -I /home/jkeenan/testing/blead/lib Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for ExtUtils::PkgConfig
Writing MYMETA.yml and MYMETA.json
[perl-ExtUtils-PkgConfig] 812 $ make
cp lib/ExtUtils/PkgConfig.pm blib/lib/ExtUtils/PkgConfig.pm
[perl-ExtUtils-PkgConfig] 813 $ make test
PERL_DL_NONLAZY=1 "/home/jkeenan/testing/blead/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/1.t .. 1/7 Can't locate t/swallow_stderr.inc in @INC (@INC contains: /home/jkeenan/gitwork/zzzothers/perl-ExtUtils-PkgConfig/blib/lib /home/jkeenan/gitwork/zzzothers/perl-ExtUtils-PkgConfig/blib/arch /home/jkeenan/testing/blead/lib/perl5/site_perl/5.25.11/x86_64-linux /home/jkeenan/testing/blead/lib/perl5/site_perl/5.25.11 /home/jkeenan/testing/blead/lib/perl5/5.25.11/x86_64-linux /home/jkeenan/testing/blead/lib/perl5/5.25.11) at t/1.t line 13.
# Looks like your test exited with 2 just after 1.
t/1.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 6/7 subtests
t/2.t .. ok
t/3.t .. ok
t/4.t .. Can't locate t/swallow_stderr.inc in @INC (@INC contains: /home/jkeenan/gitwork/zzzothers/perl-ExtUtils-PkgConfig/blib/lib /home/jkeenan/gitwork/zzzothers/perl-ExtUtils-PkgConfig/blib/arch /home/jkeenan/testing/blead/lib/perl5/site_perl/5.25.11/x86_64-linux /home/jkeenan/testing/blead/lib/perl5/site_perl/5.25.11 /home/jkeenan/testing/blead/lib/perl5/5.25.11/x86_64-linux /home/jkeenan/testing/blead/lib/perl5/5.25.11) at t/4.t line 11.
# Looks like your test exited with 2 before it could output anything.
t/4.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 24/24 subtests
Test Summary Report
-------------------
t/1.t (Wstat: 512 Tests: 1 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 7 tests but ran 1.
t/4.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 24 tests but ran 0.
Files=4, Tests=18, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.14 cusr 0.00 csys = 0.17 CPU)
Result: FAIL
Failed 2/4 test programs. 0/18 subtests failed.
Makefile:856: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 2
#####
A patch will be forthcoming.
Thank you very much.
Jim Keenan