diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-07-14 22:08:56 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-07-14 22:08:56 -0400 |
commit | feb41271b88b03aecee2b38c91060f91ca526113 (patch) | |
tree | e8c4aab88661d4bc5471bc8f3b303575c19d2c7b | |
parent | 868054997def0e588851aaeadbb0d0812c518692 (diff) | |
download | libc-testsuite-feb41271b88b03aecee2b38c91060f91ca526113.tar.gz |
revert change to strtol/wcstol tests for 0xz. previous behavior was right..
-rw-r--r-- | strtol.c | 2 | ||||
-rw-r--r-- | wcstol.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -71,7 +71,7 @@ int test_strtol(void) TEST(l, strtol(s="0F5F", &c, 16), 0x0f5f, "%ld != %ld"); TEST(l, strtol(s="0xz", &c, 16), 0, "%ld != %ld"); - TEST2(i, c-s, 0, "wrong final position %ld != %ld"); + TEST2(i, c-s, 1, "wrong final position %ld != %ld"); TEST(l, strtol(s="0x1234", &c, 16), 0x1234, "%ld != %ld"); TEST2(i, c-s, 6, "wrong final position %ld != %ld"); @@ -63,7 +63,7 @@ int test_wcstol(void) TEST(l, wcstol(L"00010010001101000101011001111000", 0, 2), 0x12345678, "%ld != %ld"); TEST(l, wcstol(s=L"0xz", &c, 16), 0, "%ld != %ld"); - TEST2(i, c-s, 0, "wrong final position %ld != %ld"); + TEST2(i, c-s, 1, "wrong final position %ld != %ld"); TEST(l, wcstol(s=L"0x1234", &c, 16), 0x1234, "%ld != %ld"); TEST2(i, c-s, 6, "wrong final position %ld != %ld"); |