Subject: | Unit Test Failures in Date::Manip due to undefined subroutine |
I'm attempting to build/install Time::Format 1.11 for Perl 5.14.1 on a
Windows XP 32-bit desktop. I get the unit test results shown below.
It's not clear to me whether this is a Date::Manip bug or a Time::Format
bug. The Date::Manip code looks correct to me. I tried a few simple
tweaks to the TZ.pm file, but couldn't resolve these unit test errors.
One other thing I noticed is that the allegedly undefined subroutine
"_sortByLength" is successfully called by an earlier unit test (I
believe t/DateManip.t). Any workarounds would be fine, too. I just
need some confidence that this module is actually built correctly so I
can install it. Thanks in advance.
===== UNIT TEST RESULTS =====
K:\Toolchains\WindowsXP\X86\sig1\perl-5.14.1\bin\perl.exe "-
MExtUtils::C
ommand::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t
t/0-signature.t .. ok
t/1-load.t ....... ok
t/DateManip.t .... ok
t/DateTime.t ..... ok
t/die.t .......... ok
Undefined subroutine in sort at K:/Toolchains/WindowsXP/X86/sig1/perl-
5.14.1/sit
e/lib/Date/Manip/TZ.pm line 1365, <DATA> line 1.
# Looks like you planned 26 tests but ran 23.
# Looks like your test exited with 255 just after 23.
t/doc.t ..........
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 3/26 subtests
t/epoch.t ........ ok
t/export1.t ...... ok
t/export2.t ...... ok
t/export3.t ...... ok
Undefined subroutine in sort at K:/Toolchains/WindowsXP/X86/sig1/perl-
5.14.1/sit
e/lib/Date/Manip/TZ.pm line 1365, <DATA> line 1.
# Looks like you planned 18 tests but ran 12.
# Looks like your test exited with 255 just after 12.
t/funcs.t ........
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 6/18 subtests
t/locale.t ....... ok
Undefined subroutine in sort at K:/Toolchains/WindowsXP/X86/sig1/perl-
5.14.1/sit
e/lib/Date/Manip/TZ.pm line 1365.
# Looks like you planned 6 tests but ran 1.
# Looks like your test exited with 255 just after 1.
t/manip.t ........
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 5/6 subtests
t/past.t ......... ok
t/quot.t ......... ok
t/strftime.t ..... ok
t/string.t ....... ok
t/time.t ......... ok
t/xs_DateTime.t .. ok
t/xs_doc.t ....... ok
t/xs_funcs.t ..... ok
t/xs_locale.t .... ok
t/xs_quot.t ...... ok
t/xs_time.t ...... ok
Test Summary Report
-------------------
t/doc.t (Wstat: 65280 Tests: 23 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 26 tests but ran 23.
t/funcs.t (Wstat: 65280 Tests: 12 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 18 tests but ran 12.
t/manip.t (Wstat: 65280 Tests: 1 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 6 tests but ran 1.
Files=24, Tests=384, 31 wallclock secs ( 0.20 usr + 0.61 sys = 0.81
CPU)
Result: FAIL
Failed 3/24 test programs. 0/384 subtests failed.