Subject: | Test failures because of floating point inaccuracies |
If perl was compiled with increased floating point accuracy (-Duselongdouble), then the test suite fails:
...
# Failed test 'icq(41056.2752083333) => 2012-05-27T06:36:17.999997418Z'
# at t/Time-Moment-Epoch.t line 257.
# got: '2012-05-27T06:36:17.999997120Z'
# expected: '2012-05-27T06:36:17.999997418Z'
# Failed test 'icq(41056.2967361111) => 2012-05-27T07:07:17.999999080Z'
# at t/Time-Moment-Epoch.t line 257.
# got: '2012-05-27T07:07:17.999999039Z'
# expected: '2012-05-27T07:07:17.999999080Z'
# Failed test 'to_icq(2012-05-27T07:07:17.999999080Z) => 41056.2967361111'
# at t/Time-Moment-Epoch.t line 257.
# got: '41056.2967361111005'
# expected: '41056.2967361111'
# Looks like you failed 3 tests of 45.
t/Time-Moment-Epoch.t ..
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/45 subtests
...
Overview of linux test reports --- it fails for "-ld" builds, which means "longdouble": http://matrix.cpantesters.org/?dist=Time-Moment-Epoch%201.003002;os=linux;reports=1