Subject: | t/examples-fibs.t fails with -Duselongdouble |
t/examples-fibs.t fails if perl is compiled with increased floating point accuracy (i.e. with the configure option -Duselongdouble). A sample log excerpt on a linux system (freebsd is similar):
...
times for fib: user=0.01, system=0, cuser=0, csystem=0
# Failed test 'line 167'
# at examples//../lib/Chj/TEST.pm line 322.
# got: '2.76820971237290031e+292'
# expected: '2.7682097123729e+292'
times for fibonacci: user=0, system=0, cuser=0, csystem=0
# Looks like you failed 1 test of 10.
# Failed test 'Package main'
# at examples//../lib/Chj/TEST.pm line 388.
# Looks like you failed 1 test of 1.
t/examples-fibs.t ....................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
...