This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

strtol broken?



The strtol in latest CVS fails part of the test suite.  I'm not sure
if it's strtol or the tester that's broken.

    strtol("2147483648", , 0) test 3 failed:
    returns -2147483648, expected 2147483647
    errno 0 (Success)  instead of 34 (Numerical result out of range)
    strtol("214748364888", , 0) test 4 failed:
    returns -1, expected 2147483647
    strtol("2147483650", , 0) test 5 failed:
    returns -2147483646, expected 2147483647
    errno 0 (Success)  instead of 34 (Numerical result out of range)
    strtol("0x1122334455z", , 16) test 9 failed:
    returns -1, expected 2147483647

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]