Skip Menu |
 

This queue is for tickets about the DateTime-Astro CPAN distribution.

Report information
The Basics
Id: 101846
Status: open
Priority: 0/
Queue: DateTime-Astro

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.00
Fixed in: (no value)



Subject: t/006_solar_longitude.t fails (only today?)
Download (untitled) / with headers
text/plain 396b
The t/006_solar_longitude.t test fails on all my smoker machines: Invalid day of month (day = 31 - month = 6 - year = 1992) at t/DateTime/Astro/Test.pm line 12. # Tests were run but no plan was declared and done_testing() was not seen. # Looks like your test exited with 255 just after 4. t/006_solar_longitude.t ....... Dubious, test returned 255 (wstat 65280, 0xff00) All 4 subtests passed
Download (untitled) / with headers
text/plain 600b
On 2015-01-31 13:33:01, SREZIC wrote: Show quoted text
> The t/006_solar_longitude.t test fails on all my smoker machines: > > Invalid day of month (day = 31 - month = 6 - year = 1992) > at t/DateTime/Astro/Test.pm line 12. > # Tests were run but no plan was declared and done_testing() was not seen. > # Looks like your test exited with 255 just after 4. > t/006_solar_longitude.t ....... > Dubious, test returned 255 (wstat 65280, 0xff00) > All 4 subtests passed
It seems that the test only fails today (2015-01-31) --- if I fake the time using PERL5OPT=-MTime::Fake=-1d (or using +1d), then the test passes.
Oooh, Time::Fake.. that's what I needed...
Download (untitled) / with headers
text/plain 1.4k
On 2015-01-31 13:42:59, SREZIC wrote: Show quoted text
> On 2015-01-31 13:33:01, SREZIC wrote:
> > The t/006_solar_longitude.t test fails on all my smoker machines: > > > > Invalid day of month (day = 31 - month = 6 - year = 1992) > > at t/DateTime/Astro/Test.pm line 12. > > # Tests were run but no plan was declared and done_testing() was not > > seen. > > # Looks like your test exited with 255 just after 4. > > t/006_solar_longitude.t ....... > > Dubious, test returned 255 (wstat 65280, 0xff00) > > All 4 subtests passed
> > It seems that the test only fails today (2015-01-31) --- if I fake the > time using PERL5OPT=-MTime::Fake=-1d (or using +1d), then the test > passes.
Probably it fails on every 31th... for example: $ env PERL5OPT=-MTime::Fake=$(date --date="2016-08-31 12:00:00" +%s) /opt/perl-5.18.4/bin/prove -b t/006_solar_longitude.t t/006_solar_longitude.t .. 1/? Invalid day of month (day = 31 - month = 6 - year = 1992) at t/DateTime/Astro/Test.pm line 12. # Tests were run but no plan was declared and done_testing() was not seen. # Looks like your test exited with 255 just after 4. t/006_solar_longitude.t .. Dubious, test returned 255 (wstat 65280, 0xff00) All 4 subtests passed Test Summary Report ------------------- t/006_solar_longitude.t (Wstat: 65280 Tests: 4 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output Files=1, Tests=4, 0 wallclock secs ( 0.01 usr 0.02 sys + 0.07 cusr 0.01 csys = 0.11 CPU) Result: FAIL
Download (untitled) / with headers
text/plain 1.6k
This has been addressed in PR #5, https://github.com/lestrrat/DateTime-Astro/pull/5 - cool trick with Time::Fake :-) On Sun Feb 21 17:01:07 2016, SREZIC wrote: Show quoted text
> On 2015-01-31 13:42:59, SREZIC wrote:
> > On 2015-01-31 13:33:01, SREZIC wrote:
> > > The t/006_solar_longitude.t test fails on all my smoker machines: > > > > > > Invalid day of month (day = 31 - month = 6 - year = 1992) > > > at t/DateTime/Astro/Test.pm line 12. > > > # Tests were run but no plan was declared and done_testing() was > > > not > > > seen. > > > # Looks like your test exited with 255 just after 4. > > > t/006_solar_longitude.t ....... > > > Dubious, test returned 255 (wstat 65280, 0xff00) > > > All 4 subtests passed
> > > > It seems that the test only fails today (2015-01-31) --- if I fake > > the > > time using PERL5OPT=-MTime::Fake=-1d (or using +1d), then the test > > passes.
> > Probably it fails on every 31th... for example: > > $ env PERL5OPT=-MTime::Fake=$(date --date="2016-08-31 12:00:00" +%s) > /opt/perl-5.18.4/bin/prove -b t/006_solar_longitude.t > t/006_solar_longitude.t .. 1/? Invalid day of month (day = 31 - month > = 6 - year = 1992) > at t/DateTime/Astro/Test.pm line 12. > # Tests were run but no plan was declared and done_testing() was not > seen. > # Looks like your test exited with 255 just after 4. > t/006_solar_longitude.t .. Dubious, test returned 255 (wstat 65280, > 0xff00) > All 4 subtests passed > > Test Summary Report > ------------------- > t/006_solar_longitude.t (Wstat: 65280 Tests: 4 Failed: 0) > Non-zero exit status: 255 > Parse errors: No plan found in TAP output > Files=1, Tests=4, 0 wallclock secs ( 0.01 usr 0.02 sys + 0.07 cusr > 0.01 csys = 0.11 CPU) > Result: FAIL


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.