ingydotnet / io-all-pm

All in One Perl IO
http://search.cpan.org/dist/IO-All/
38 stars 20 forks source link

Fails tests without '.' in @INC #101

Closed kentfredric closed 7 years ago

kentfredric commented 7 years ago

Perl 5.25.11 w/ -Ddefault_inc_excludes_dot and PERL_USE_UNSAFE_INC=0 exposes an implicit dependency on '.' in @INC

It is recommended that a "./" prefix be added on these "do" invocations to avoid failure. ( don't be tempted to cheat and just reinsert '.' in @INC, that will just risk hiding other problems )

t/head.t ................. ok
do "t/output__file_subclass/dump2" failed, '.' is no longer in @INC at t/file_subclass.t line 19.

#   Failed test at t/file_subclass.t line 21.
#     Structures begin differing at:
#          $got = undef
#     $expected = HASH(0x1f597d8)
# Looks like you failed 1 test of 5.
t/file_subclass.t ........ 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/5 subtests 
t/input.t ................ ok
t/glob.t ................. ok
t/import_flags.t ......... ok
t/in-place.t ............. ok
do "t/output__inline_subclass/dump1" failed, '.' is no longer in @INC at t/inline_subclass.t line 38.

#   Failed test at t/inline_subclass.t line 40.
#     Structures begin differing at:
#          $got = undef
#     $expected = HASH(0x1d14d28)
# Looks like you failed 1 test of 5.
t/inline_subclass.t ...... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/5 subtests 
t/mldbm.t ................ skipped: requires MLDBM
frioux commented 7 years ago

Fixed in 08e70c9a8. Will attempt release.