Skip to content

Test failures with -Duselongdouble #4

@eserte

Description

@eserte

The test suite fails on some systems where perl is compiled with -Duselongdouble:


    #   Failed test at t/04-basic.t line 139.
    #          got: '49.9900000000000019895196601282805'
    #     expected: '49.99'
    # Looks like you failed 1 test of 9.

#   Failed test 'Order operations'
#   at t/04-basic.t line 160.
# Looks like you failed 1 test of 4.
t/04-basic.t .......................... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests 

    #   Failed test at t/05-simple-get.t line 154.
    #          got: '49.9900000000000019895196601282805'
    #     expected: '49.99'
    # Looks like you failed 1 test of 7.

#   Failed test 'Order operations'
#   at t/05-simple-get.t line 168.
# Looks like you failed 1 test of 4.
t/05-simple-get.t ..................... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests 
...
    #   Failed test 'Price was replaced'
    #   at t/37-row-copy.t line 142.
    #          got: '79.9899999999999948840923025272787'
    #     expected: '79.99'

    #   Failed test 'Original price unchanged'
    #   at t/37-row-copy.t line 147.
    #          got: '49.9900000000000019895196601282805'
    #     expected: '49.99'
    # Looks like you failed 2 tests of 7.

#   Failed test 'Copy with replacement data'
#   at t/37-row-copy.t line 156.

    #   Failed test 'Price replaced'
    #   at t/37-row-copy.t line 352.
    #          got: '99.9899999999999948840923025272787'
    #     expected: '99.99'
    # Looks like you failed 1 test of 5.

#   Failed test 'Copy with all columns replaced'
#   at t/37-row-copy.t line 362.
# Looks like you failed 2 tests of 9.
t/37-row-copy.t ....................... 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/9 subtests 
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions