Skip Menu |
 

This queue is for tickets about the VS-Chart CPAN distribution.

Report information
The Basics
Id: 38059
Status: open
Priority: 0/
Queue: VS-Chart

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

Bug Information
Severity: Normal
Broken in: 0.05
Fixed in: (no value)



Subject: Failing test with "Date interval must be an integer"
Download (untitled) / with headers
text/plain 809b
A couple of my smoke boxes have reported FAILs and the error message is not very helpful: t/07-line............Date interval must be an integer at /home/sand/.cpan/build/VS-Chart-0.05-QiQMkV/blib/lib/VS/Chart/Renderer/XY.pm line 320 # Looks like your test died before it could output anything. Dubious, test returned 255 (wstat 65280, 0xff00) Failed 2/2 subtests May I suggest that you amend the error mesage to include the string it is complaining about? (I haven't looked into the code, please bear with if I'm asking the impossible) Interestingly, the FAIL disappears when I install IZUT/Date-Simple-3.03_03.tar.gz, so it may be a bug in Date::Simple. But the curious thing is that other testers also use Date::Simple 3.02 and send PASSes. Let me know if I can provide further informations. Thanks,
Subject: Re: [rt.cpan.org #38059] Failing test with "Date interval must be an integer"
Date: Thu, 31 Jul 2008 19:45:56 +0200
To: bug-VS-Chart [...] rt.cpan.org
From: Claes Jakobsson <claes [...] versed.se>
Download (untitled) / with headers
text/plain 1.3k
Hi, On 31 jul 2008, at 04.01, Andreas Koenig via RT wrote: Show quoted text
> A couple of my smoke boxes have reported FAILs and the error message > is > not very helpful: > > t/07-line............Date interval must be an integer at > /home/sand/.cpan/build/VS-Chart-0.05-QiQMkV/blib/lib/VS/Chart/ > Renderer/XY.pm > line 320 > # Looks like your test died before it could output anything. > Dubious, test returned 255 (wstat 65280, 0xff00) > Failed 2/2 subtests > > May I suggest that you amend the error mesage to include the string it > is complaining about? (I haven't looked into the code, please bear > with > if I'm asking the impossible)
The message itself originates from Date::Simple::NoXS when one tries to add a non integer interval to a date. My platform uses the .xs version it casts it and thus does not complain. I suspect you're smoking on a 64-bit platform? and therefor it falls back to the non-XS version. Show quoted text
> Interestingly, the FAIL disappears when I install > IZUT/Date-Simple-3.03_03.tar.gz, so it may be a bug in Date::Simple. > But > the curious thing is that other testers also use Date::Simple 3.02 and > send PASSes.
Yeah, 3.03_03 adds support for 64-bit platforms which is why I think it uses the XS version where this works. But, it's definitely a bug in VS-Chart since it should probably do an explicitly int() on that offset it tries to add. Thanks, Claes
CC: ANDK [...] cpan.org
Subject: Re: [rt.cpan.org #38059] Failing test with "Date interval must be an integer"
Date: Thu, 31 Jul 2008 23:17:44 +0200
To: bug-VS-Chart [...] rt.cpan.org
From: andreas.koenig.7os6VVqR [...] franz.ak.mind.de (Andreas J. Koenig)
Download (untitled) / with headers
text/plain 2.2k
Show quoted text
>>>>> On Thu, 31 Jul 2008 13:46:21 -0400, "Claes Jakobsson via RT" <bug-VS-Chart@rt.cpan.org> said:
Show quoted text
> I suspect you're smoking on a 64-bit platform?
Either 64bit native or declared with use64bitint, yes. ctgetreports --q conf:use64bitint --q conf:archname --q mod:Date::Simple --ctformat=yaml VS-Chart | sort DONE (not modified) FAIL 1931925 conf:use64bitint[define] conf:archname[i686-linux-64int] mod:Date::Simple[3.02] FAIL 1931931 conf:use64bitint[define] conf:archname[i686-linux-64int] mod:Date::Simple[3.02] FAIL 1931933 conf:use64bitint[define] conf:archname[i686-linux-64int] mod:Date::Simple[3.02] FAIL 1931937 conf:use64bitint[define] conf:archname[i686-linux-64int] mod:Date::Simple[3.02] FAIL 1931949 conf:use64bitint[define] conf:archname[i686-linux-thread-multi-64int] mod:Date::Simple[3.02] FAIL 1932017 conf:use64bitint[define] conf:archname[x86_64-linux] mod:Date::Simple[3.02] FAIL 1956415 conf:use64bitint[define] conf:archname[i686-linux-64int] mod:Date::Simple[3.02] PASS 1931930 conf:use64bitint[define] conf:archname[i686-linux-64int] mod:Date::Simple[3.03_03] PASS 1931942 conf:use64bitint[define] conf:archname[i686-linux-thread-multi-64int] mod:Date::Simple[3.03_03] PASS 1931945 conf:use64bitint[define] conf:archname[i686-linux-thread-multi-64int] mod:Date::Simple[3.03_03] PASS 1933812 conf:use64bitint[undef] conf:archname[i386-freebsd] mod:Date::Simple[3.02] PASS 1933884 conf:use64bitint[undef] conf:archname[i386-freebsd] mod:Date::Simple[3.02] PASS 1934027 conf:use64bitint[undef] conf:archname[i386-freebsd] mod:Date::Simple[3.02] PASS 1934174 conf:use64bitint[undef] conf:archname[i386-freebsd-thread-multi] mod:Date::Simple[3.02] PASS 1934253 conf:use64bitint[undef] conf:archname[i386-freebsd-thread-multi] mod:Date::Simple[3.02] PASS 1938564 conf:use64bitint[define] conf:archname[alpha-netbsd] mod:Date::Simple[3.02] PASS 1939220 conf:use64bitint[define] conf:archname[IP35-irix-64int] mod:Date::Simple[3.02] PASS 1964846 conf:use64bitint[undef] conf:archname[darwin-2level] mod:Date::Simple[3.02] PASS 1965163 conf:use64bitint[define] conf:archname[x86_64-linux] mod:Date::Simple[3.03_03] Show quoted text
> But, it's definitely a bug in VS-Chart since it should probably do an > explicitly int() on that offset it tries to add.
Thanks for the explanation! -- andreas


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.