Subject: | Fails tests when no "." in @INC |
However, Tests still exhibit failures if PERL_USE_UNSAFE_INC=0 , as tests also rely on assumed '.' in @INC
These failures are slightly less critical, as they're harder for end users to see due to the CPAN toolchains *and* TAP::Harness ( make test, prove, ./Build test, etc ) setting PERL_USE_UNSAFE_INC=1 automatically when PERL_USE_UNSAFE_INC is not defined.
However, this can be *hiding* real problems, and so people doing wide scale CPAN Testing are encouraged to expose and report these kinds of failures.
When fixing the failures, please take care to choose @INC modifications or require/do invocations so that libraries in other paths not loaded explicitly don't automatically load. ( That is, you want to have the tests set up so any failures in runtime loading still fail if they needed '.' in @INC to work )
t/local/07_sslecho.t ................... ok
do "t/data/cert_paypal.crt.pem_dump" failed, '.' is no longer in @INC at t/local/32_x509_get_cert_info.t line 23.
do "t/data/cert_twitter.crt.pem_dump" failed, '.' is no longer in @INC at t/local/32_x509_get_cert_info.t line 23.
do "t/data/testcert_extended.crt.pem_dump" failed, '.' is no longer in @INC at t/local/32_x509_get_cert_info.t line 23.
do "t/data/testcert_simple.crt.pem_dump" failed, '.' is no longer in @INC at t/local/32_x509_get_cert_info.t line 23.
do "t/data/testcert_strange.crt.pem_dump" failed, '.' is no longer in @INC at t/local/32_x509_get_cert_info.t line 23.
do "t/data/testcert_cdp.crt.pem_dump" failed, '.' is no longer in @INC at t/local/32_x509_get_cert_info.t line 23.
# Failed test 'X509_NAME_entry_count cert_twitter.crt.pem'
# at t/local/32_x509_get_cert_info.t line 50.
# got: '12'
# expected: undef
with a final run of
t/local/32_x509_get_cert_info.t (Wstat: 512 Tests: 190 Failed: 95)
Failed tests: 7, 13-15, 19-21, 25-27, 31-33, 37-39, 43-45
49-51, 55-57, 61-63, 67-69, 73-75, 79-81
83-85, 89-91, 95-97, 101-103, 107-109, 113-120
124-129, 131-134, 138-139, 143-144, 148-149
153-154, 158-159, 163-164, 168-169, 173-174
178-179, 183-187, 189-190
Non-zero exit status: 2
Parse errors: Bad plan. You planned 1243 tests but ran 190.
--
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )