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?)
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-19298-1422729180-1236.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 396
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
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-19298-1422729180-1236.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-19298-1422729180-1236.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-25690-1422729779-1165.101846-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 600
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.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-25690-1422729779-1165.101846-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-19298-1422729180-1236.0-0-0 [...] rt.cpan.org> <rt-4.0.18-25690-1422729779-1165.101846-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-1518-1422742916-1794.101846-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 42
Oooh, Time::Fake.. that's what I needed...
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-25690-1422729779-1165.101846-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-19298-1422729180-1236.0-0-0 [...] rt.cpan.org> <rt-4.0.18-25690-1422729779-1165.101846-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-12422-1456092067-1494.101846-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 1479
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
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-12422-1456092067-1494.101846-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-19298-1422729180-1236.0-0-0 [...] rt.cpan.org> <rt-4.0.18-25690-1422729779-1165.101846-0-0 [...] rt.cpan.org> <rt-4.0.18-12422-1456092067-1494.101846-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-9737-1502918554-1101.101846-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 1720
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.