Skip Menu |
 

This queue is for tickets about the RRD-Simple CPAN distribution.

Report information
The Basics
Id: 78785
Status: open
Priority: 0/
Queue: RRD-Simple

People
Owner: Nobody in particular
Requestors: roman [...] cloudcabin.org
Cc:
AdminCc:

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



Subject: RRD::Simple - test 23 fails
Date: Sun, 05 Aug 2012 17:12:11 +0400
To: bugs-RRD-Simple [...] rt.cpan.org
From: Roman Grazhdan <roman [...] cloudcabin.org>
Download (untitled) / with headers
text/plain 1.3k
Hello, I have a test #23 for RRD::Simple failing, 6 time-related subtests. The error reports for perl -Ilib t/23graph1.t go like this: # Failed test 'graph() return hash (monthly)' # at t/23graph1.t line 68. # Compared $data->[0] # got : 'bytesIn min -nan' # expect : 'bytesIn min nan' # Failed test 'graph() return hash (annual)' # at t/23graph1.t line 68. # Compared $data->[0] # got : 'bytesIn min -nan' # expect : 'bytesIn min nan' # Failed test 'graph() return hash (monthly)' # at t/23graph1.t line 68. # Compared $data->[0] # got : 'bytesIn min -nan' # expect : 'bytesIn min nan' # Failed test 'graph() return hash (3years)' # at t/23graph1.t line 68. # Compared $data->[0] # got : 'bytesIn min -nan' # expect : 'bytesIn min nan' # Failed test 'graph() return hash (annual)' # at t/23graph1.t line 68. # Compared $data->[0] # got : 'bytesIn min -nan' # expect : 'bytesIn min nan' # Failed test 'graph() return hash (monthly)' # at t/23graph1.t line 68. # Compared $data->[0] # got : 'bytesIn min -nan' # expect : 'bytesIn min nan' # Looks like you failed 6 tests of 226. The output of perl -Ilib t/23graph1.t with and without print Dumper(%rtn) is attached. I'm not too familiar with modules testing, but if you need any more info just tell. Thanks for your work, Roman Grazhdan
Download testrun.txt
text/plain 6k

Message body is not shown because sender requested not to inline it.

Download dumper.txt
text/plain 23.8k

Message body is not shown because sender requested not to inline it.

Here's a patch that fixes this for me.
Subject: rrd-test-nan
Download rrd-test-nan
application/octet-stream 1.3k

Message body not shown because it is not plain text.

From: paul [...] city-fan.org
Download (untitled) / with headers
text/plain 240b
On Thu Jan 10 13:59:37 2013, RRA wrote: Show quoted text
> Here's a patch that fixes this for me.
Works for me too but I think it'll need a version test like the one for RT#46193 before it can be included upstream, so as to work with older versions of RRD.
Subject: Re: [rt.cpan.org #78785] RRD::Simple - test 23 fails
Date: Fri, 11 Jan 2013 10:16:11 +0400
To: <bug-rrd-simple [...] rt.cpan.org>
From: Roman Grazhdan <roman [...] cloudcabin.org>
Download (untitled) / with headers
text/plain 541b
I believe it has something to do with how different versions of rrdtool represent 'not a number' nan/-nan or something. Thanks, I'll try the patch and report this week. On 11.01.2013 01:01, paul@city-fan.org via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=78785 > > > On Thu Jan 10 13:59:37 2013, RRA wrote:
>> Here's a patch that fixes this for me.
> > Works for me too but I think it'll need a version test like the one > for > RT#46193 before it can be included upstream, so as to work with older > versions of RRD.
Download (untitled) / with headers
text/plain 132b
FWIW, in Debian the patch seems to fix the bug on x86_64, but not on arm64: https://ci.debian.net/packages/libr/librrd-simple-perl/


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.