Subject: | Precision error w/ perl compiled with -Duselongdouble |
Reported by H.Merijn Brand:
With a perl configured with -Duselongdouble:
This is perl 5, version 14, subversion 1 (v5.14.1) built for
i686-linux-64int-ld
Installing on a linux, Ver#2.6
Using Oracle in /usr/lib/oracle/11.2/client
DEFINE _SQLPLUS_RELEASE = "1102000200" (CHAR)
Oracle version 11.2.0.2 (11.2)
SQL*Plus: Release 11.2.0.2.0 Production on Fri Oct 21 16:48:54 2011
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing
options
t/58object.t ............ 5/65
# Failed test 'new: Row 1 column 2 object attributes'
# at t/58object.t line 177.
# Structures begin differing at:
# $got->[7] = '12345.678899999999'
# $expected->[7] = '12345.6789'
# Failed test 'new: Row 1 column 2 object attributes'
# at t/58object.t line 184.
# Structures begin differing at:
# $got->[7] = '777.666000000000054'
# $expected->[7] = '777.666'
# Failed test 'DBD::Oracle::Object->attr_hash'
# at t/58object.t line 199.
# Structures begin differing at:
# $got->{AMOUNT} = '777.666000000000054'
# $expected->{AMOUNT} = '777.666'
# Failed test 'DBD::Oracle::Object->attr'
# at t/58object.t line 200.
# Structures begin differing at:
# $got->{AMOUNT} = '777.666000000000054'
# $expected->{AMOUNT} = '777.666'
# Looks like you failed 4 tests of 65.
t/58object.t ............ Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/65 subtests
Test Summary Report
-------------------
t/58object.t (Wstat: 1024 Tests: 65 Failed: 4)
Failed tests: 41, 45, 47-48
Non-zero exit status: 4
Files=33, Tests=2525, 23 wallclock secs ( 0.42 usr 0.04 sys + 3.38
cusr 0.56 csys = 4.40 CPU)
Result: FAIL
Failed 1/33 test programs. 4/2525 subtests failed.