Subject: | Test failures due to Date::Manip alteration |
Date: | Thu, 2 May 2013 16:01:02 +0100 |
To: | bug-Time-Format [...] rt.cpan.org |
From: | Sendu Bala <sendu [...] sendu.me.uk> |
Running perl 5.12.2 on an Ubuntu precise system, Date::Manip 6.39 installed, trying to install Time::Format 1.12 I get the failures you see at the end of this email.
If I alter the 3 failing tests (t/doc.t, t/funcs.t and t/manip.t) to remove this line:
%Date::Manip:: = ();
Then all tests pass fine.
I can't work out why that line is there in the test scripts. It isn't used in the Time::Format module itself, so presumably the test failures don't indicate a real problem?
Perhaps you could remove those lines so people can install Time::Format easily in the future.
$ perl Build test
t/0-signature.t .. ok
t/1-load.t ....... ok
t/DateManip.t .... ok
t/DateTime.t ..... ok
t/die.t .......... ok
t/doc.t .......... 1/26 Can't locate package Date::Manip::Obj for @Date::Manip::TZ::ISA at /software/vertres/lib/perl/lib/perl5/Date/Manip/TZ.pm line 1367, <DATA> line 1.
Can't locate package Date::Manip::TZ_Base for @Date::Manip::TZ::ISA at /software/vertres/lib/perl/lib/perl5/Date/Manip/TZ.pm line 1367, <DATA> line 1.
Can't locate object method "_now" via package "Date::Manip::TZ" at /software/vertres/lib/perl/lib/perl5/Date/Manip/TZ.pm line 1367, <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
t/funcs.t ........ 1/18 Can't locate package Date::Manip::Obj for @Date::Manip::TZ::ISA at /software/vertres/lib/perl/lib/perl5/Date/Manip/Date.pm line 1861, <DATA> line 1.
Can't locate package Date::Manip::TZ_Base for @Date::Manip::TZ::ISA at /software/vertres/lib/perl/lib/perl5/Date/Manip/Date.pm line 1861, <DATA> line 1.
Can't locate object method "_fix_year" via package "Date::Manip::TZ" at /software/vertres/lib/perl/lib/perl5/Date/Manip/Date.pm line 1861, <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
t/manip.t ........ 1/6 Can't locate package Date::Manip::Obj for @Date::Manip::TZ::ISA at /software/vertres/lib/perl/lib/perl5/Date/Manip/Date.pm line 1861.
Can't locate package Date::Manip::TZ_Base for @Date::Manip::TZ::ISA at /software/vertres/lib/perl/lib/perl5/Date/Manip/Date.pm line 1861.
Can't locate object method "_fix_year" via package "Date::Manip::TZ" at /software/vertres/lib/perl/lib/perl5/Date/Manip/Date.pm line 1861.
# 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/msec.t ......... ok
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=25, Tests=459, 6 wallclock secs ( 0.14 usr 0.04 sys + 1.07 cusr 0.30 csys = 1.55 CPU)
Result: FAIL
Failed 3/25 test programs. 0/459 subtests failed.