Subject: | t/filehandle_compressed.t failing with perl 5.8.x |
I'm seeing this with 5.8.5 - 5.8.8:
$ make test TEST_FILES=t/filehandle_compressed.t
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/filehandle_compressed.t
t/filehandle_compressed....No such file or directory: /tmp/xXWt7eLYxy at t/Test/Utils.pm line 42
readline() on closed filehandle F at /usr/lib/perl5/vendor_perl/5.8.8/Text/Diff.pm line 64.
# Failed test 'Computing differences between t/mailboxes/mailarc-2.txt and /tmp/xXWt7eLYxy'
# at t/filehandle_compressed.t line 112.
t/filehandle_compressed....NOK 1unlink0: /tmp/Z5VWpqeioF is gone already at t/filehandle_compressed.t line 46
No such file or directory: /tmp/FdEmrbtrOt at t/Test/Utils.pm line 42
readline() on closed filehandle F at /usr/lib/perl5/vendor_perl/5.8.8/Text/Diff.pm line 64.
# Failed test 'Computing differences between t/mailboxes/mailarc-2.txt and /tmp/FdEmrbtrOt'
# at t/filehandle_compressed.t line 112.
t/filehandle_compressed....NOK 2unlink0: /tmp/ObGvTKiCWz is gone already at t/filehandle_compressed.t line 52
No such file or directory: /tmp/e5JM2QOMIq at t/Test/Utils.pm line 42
readline() on closed filehandle F at /usr/lib/perl5/vendor_perl/5.8.8/Text/Diff.pm line 64.
# Failed test 'Computing differences between t/mailboxes/mailarc-2.txt and /tmp/e5JM2QOMIq'
# at t/filehandle_compressed.t line 112.
t/filehandle_compressed....NOK 3unlink0: /tmp/BbeZRffh24 is gone already at t/filehandle_compressed.t line 53
t/filehandle_compressed....ok 4/20No such file or directory: /tmp/4z23KgqnZr at t/Test/Utils.pm line 42
readline() on closed filehandle F at /usr/lib/perl5/vendor_perl/5.8.8/Text/Diff.pm line 64.
# Failed test 'Computing differences between t/mailboxes/mailarc-2.txt and /tmp/4z23KgqnZr'
t/filehandle_compressed....NOK 5# at t/filehandle_compressed.t line 112.
unlink0: /tmp/gVhm3Fr0FE is gone already at t/filehandle_compressed.t line 46
No such file or directory: /tmp/4J1zwEvuKq at t/Test/Utils.pm line 42
readline() on closed filehandle F at /usr/lib/perl5/vendor_perl/5.8.8/Text/Diff.pm line 64.
# Failed test 'Computing differences between t/mailboxes/mailarc-2.txt and /tmp/4J1zwEvuKq'
# at t/filehandle_compressed.t line 112.
t/filehandle_compressed....NOK 6unlink0: /tmp/Bb9T2q9y9W is gone already at t/filehandle_compressed.t line 52
No such file or directory: /tmp/jYJWa4sq98 at t/Test/Utils.pm line 42
readline() on closed filehandle F at /usr/lib/perl5/vendor_perl/5.8.8/Text/Diff.pm line 64.
# Failed test 'Computing differences between t/mailboxes/mailarc-2.txt and /tmp/jYJWa4sq98'
# at t/filehandle_compressed.t line 112.
t/filehandle_compressed....NOK 7unlink0: /tmp/apdKPqOfWD is gone already at t/filehandle_compressed.t line 53
No such file or directory: /tmp/npa0e63ynM at t/Test/Utils.pm line 42
readline() on closed filehandle F at /usr/lib/perl5/vendor_perl/5.8.8/Text/Diff.pm line 64.
# Failed test 'Computing differences between t/mailboxes/mailarc-2.txt and /tmp/npa0e63ynM'
# at t/filehandle_compressed.t line 112.
t/filehandle_compressed....NOK 13unlink0: /tmp/6HcRBDF9mw is gone already at t/filehandle_compressed.t line 46
No such file or directory: /tmp/qBLjO5S6A5 at t/Test/Utils.pm line 42
readline() on closed filehandle F at /usr/lib/perl5/vendor_perl/5.8.8/Text/Diff.pm line 64.
# Failed test 'Computing differences between t/mailboxes/mailarc-2.txt and /tmp/qBLjO5S6A5'
# at t/filehandle_compressed.t line 112.
t/filehandle_compressed....NOK 14unlink0: /tmp/EIDolN3eaI is gone already at t/filehandle_compressed.t line 52
No such file or directory: /tmp/iJTNWUq6f2 at t/Test/Utils.pm line 42
readline() on closed filehandle F at /usr/lib/perl5/vendor_perl/5.8.8/Text/Diff.pm line 64.
# Failed test 'Computing differences between t/mailboxes/mailarc-2.txt and /tmp/iJTNWUq6f2'
# at t/filehandle_compressed.t line 112.
t/filehandle_compressed....NOK 15unlink0: /tmp/r9HDxp5xBf is gone already at t/filehandle_compressed.t line 53
No such file or directory: /tmp/5jv4EZemaT at t/Test/Utils.pm line 42
readline() on closed filehandle F at /usr/lib/perl5/vendor_perl/5.8.8/Text/Diff.pm line 64.
# Failed test 'Computing differences between t/mailboxes/mailbox with space.txt and /tmp/5jv4EZemaT'
# at t/filehandle_compressed.t line 112.
t/filehandle_compressed....NOK 17unlink0: /tmp/rnPETUJmAg is gone already at t/filehandle_compressed.t line 46
No such file or directory: /tmp/fh8RW7zlEN at t/Test/Utils.pm line 42
readline() on closed filehandle F at /usr/lib/perl5/vendor_perl/5.8.8/Text/Diff.pm line 64.
# Failed test 'Computing differences between t/mailboxes/mailbox with space.txt and /tmp/fh8RW7zlEN'
# at t/filehandle_compressed.t line 112.
t/filehandle_compressed....NOK 18unlink0: /tmp/Dzr1MticPu is gone already at t/filehandle_compressed.t line 52
No such file or directory: /tmp/JUaD8EUJoS at t/Test/Utils.pm line 42
readline() on closed filehandle F at /usr/lib/perl5/vendor_perl/5.8.8/Text/Diff.pm line 64.
# Failed test 'Computing differences between t/mailboxes/mailbox with space.txt and /tmp/JUaD8EUJoS'
# at t/filehandle_compressed.t line 112.
t/filehandle_compressed....NOK 19unlink0: /tmp/Lj89uBAVo1 is gone already at t/filehandle_compressed.t line 53
# Looks like you failed 12 tests of 20.
t/filehandle_compressed....dubious
Test returned status 12 (wstat 3072, 0xc00)
DIED. FAILED tests 1-3, 5-7, 13-15, 17-19
Failed 12/20 tests, 40.00% okay (less 8 skipped tests: 0 okay, 0.00%)
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/filehandle_compressed.t 12 3072 20 12 60.00% 1-3 5-7 13-15 17-19
8 subtests skipped.
Failed 1/1 test scripts, 0.00% okay. 12/20 subtests failed, 40.00% okay.
make: *** [test_dynamic] Error 12
What seems to be happening is that the output file (and cache file) is created successfully but is removed when the Mail::Mbox::MessageParser object is constructed. Seems to work OK with 5.10.x and later perls, and all of the other tests work OK everywhere. I'm a bit stuck as to what's going on there.
Also, the version of t/filehandle_compressed.t from version 1.5102 still works OK with 1.5104 on all perls I've tried.
On an unrelated matter, PAUSE seems to be indexing your private Module::Install packages, which is probably not what you wanted:
http://search.cpan.org/dist/Mail-Mbox-MessageParser/
https://metacpan.org/release/Mail-Mbox-MessageParser