Subject: | Precision problems with RRD 1.3.6 AMD64? |
Hi, just successfully installed RRD binaries today and am now
installing RRDTool::OO.
I'm getting test errors that look like RRD is being too precise on a 64
bit system and messing up your results:
$>make test
PERL_DL_NONLAZY=1 /opt/perl588/release/perl588_linux/bin/perl "-
MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')"
t/*.t
t/001Basic.......9/?
# Failed test 'match expected value'
# at t/001Basic.t line 103.
# got: '1080462360:5.59999999999999964'
# expected: '1080462360:5.6'
# Failed test 'match expected value'
# at t/001Basic.t line 103.
# got: '1080462420:5.70000000000000018'
# expected: '1080462420:5.7'
# Failed test 'match expected value'
# at t/001Basic.t line 103.
# got: '1080462480:5.79999999999999982'
# expected: '1080462480:5.8'
# Failed test 'match expected value'
# at t/001Basic.t line 103.
# got: '1080462540:5.90000000000000036'
# expected: '1080462540:5.9'
t/001Basic.......15/? # Looks like you failed 4 tests of 30.
t/001Basic....... Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/30 subtests
t/002Pod.........ok
t/003Discover....ok
t/004Template....ok
t/005Graph.......1/17 rrdtool graph mygraph.png --vertical-label Test
gprint --end 1080462600 --start 1080460200 DEF:firstgraph=foo:load1:MAX
LINE1:firstgraph#FF0000:Unmodified Load
VDEF:average_of_first_draw=firstgraph,AVERAGE
GPRINT:average_of_first_draw:Hello %lf failed: unknown function 'VDEF'
at /home/.../.cpan/build/RRDTool-OO-0.22-JMGklO/blib/lib/RRDTool/OO.pm
line 410
# Looks like you planned 17 tests but ran 11.
# Looks like your test exited with 255 just after 11.
t/005Graph....... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 6/17 subtests
t/006Tune........ok
t/007Dump........ok
t/008Mult........3/?
# Failed test 'match expected value'
# at t/008Mult.t line 69.
# got: '1080462360:5.59999999999999964'
# expected: '1080462360:5.6'
# Failed test 'match expected value'
# at t/008Mult.t line 70.
# got: '1080462360:15.5999999999999996'
# expected: '1080462360:15.6'
# Failed test 'match expected value'
# at t/008Mult.t line 69.
# got: '1080462420:5.70000000000000018'
# expected: '1080462420:5.7'
# Failed test 'match expected value'
# at t/008Mult.t line 70.
# got: '1080462420:15.6999999999999993'
# expected: '1080462420:15.7'
# Failed test 'match expected value'
# at t/008Mult.t line 69.
# got: '1080462480:5.79999999999999982'
# expected: '1080462480:5.8'
# Failed test 'match expected value'
# at t/008Mult.t line 70.
# got: '1080462480:15.8000000000000007'
# expected: '1080462480:15.8'
# Failed test 'match expected value'
# at t/008Mult.t line 69.
# got: '1080462540:5.90000000000000036'
# expected: '1080462540:5.9'
# Failed test 'match expected value'
# at t/008Mult.t line 70.
# got: '1080462540:15.9000000000000004'
# expected: '1080462540:15.9'
# Looks like you failed 8 tests of 13.
t/008Mult........ Dubious, test returned 8 (wstat 2048, 0x800)
Failed 8/13 subtests
t/009Dry.........ok
t/010ABD.........rrdtool create foo --start 1080460190 --step 60
DS:load1:GAUGE:90:0:100 RRA:MAX:0.5:1:300
RRA:HWPREDICT:300:0.5:0.5:30:3 RRA:SEASONAL:30:0.01:2
RRA:DEVSEASONAL:30:0.01:2 RRA:DEVPREDICT:300:4 RRA:FAILURES:300:2:9:4
failed: can't parse argument 'RRA:HWPREDICT:300:0.5:0.5:30:3'
at /home/.../.cpan/build/RRDTool-OO-0.22-JMGklO/blib/lib/RRDTool/OO.pm
line 410
# Looks like your test exited with 255 before it could output anything.
t/010ABD......... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/1 subtests
Test Summary Report
-------------------
t/001Basic (Wstat: 1024 Tests: 30 Failed: 4)
Failed tests: 9-12
Non-zero exit status: 4
t/005Graph (Wstat: 65280 Tests: 11 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 17 tests but ran 11.
t/008Mult (Wstat: 2048 Tests: 13 Failed: 8)
Failed tests: 3-10
Non-zero exit status: 8
t/010ABD (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 1 tests but ran 0.
Files=10, Tests=91, 10 wallclock secs ( 0.06 usr 0.03 sys + 4.58
cusr 1.75 csys = 6.42 CPU)
Result: FAIL
Failed 4/10 test programs. 12/91 subtests failed.
make: *** [test_dynamic] Error 255