Subject: | Test suite fails (with uselongdouble perls?) |
On some of my smoker systems the test suite fails:
...
# Failed test 'expected colour!'
# at t/03-new-colours.t line 137.
# Structures begin differing at:
# $got->[2] = '8.29414661951410892e-17'
# $expected->[2] = '0'
# Failed test 'expected colour!'
# at t/03-new-colours.t line 137.
# Structures begin differing at:
# $got->[2] = '8.29414661951410892e-17'
# $expected->[2] = '0'
# Looks like you failed 2 tests of 6.
# Failed test 'basics - red'
# at t/03-new-colours.t line 99.
# Looks like you failed 1 test of 4.
t/03-new-colours.t ..
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests
t/04-lighten.t ...... ok
# Failed test 'expected colour!'
# at t/05-darken.t line 62.
# Structures begin differing at:
# $got->[0] = '101'
# $expected->[0] = '102'
# Looks like you failed 1 test of 10.
# Failed test 'basics - black'
# at t/05-darken.t line 56.
# Looks like you failed 1 test of 1.
t/05-darken.t .......
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
t/06-fade.t ......... ok
t/07-white-black.t .. ok
# Failed test 'rgba(255,255,255,0.01)'
# at t/08-fadeout.t line 67.
# got: 'rgba(255,255,255,0.00999999999999999999)'
# expected: 'rgba(255,255,255,0.01)'
# Looks like you failed 1 test of 11.
# Failed test 'basics - white'
# at t/08-fadeout.t line 61.
# Looks like you failed 1 test of 1.
t/08-fadeout.t ......
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
... (etc) ...
This seems to happen if perl is compiled with increased floating point accuracy (i.e. with -Duselongdouble).