X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdlib%2Fwcstol.c;h=abd76afda086abebeb63db9a569d020a2b01b4db;hb=462b4f35652098e26c677f89df6990428a4aad6a;hp=c92fa2ded1ef1ce753242e9d204bdf2a92bf5a58;hpb=80371a77c4d6978e786ab2322161c4f8e299e891;p=libc-test diff --git a/src/stdlib/wcstol.c b/src/stdlib/wcstol.c index c92fa2d..abd76af 100644 --- a/src/stdlib/wcstol.c +++ b/src/stdlib/wcstol.c @@ -13,7 +13,8 @@ ((r) = (f)) == (x) || \ (error("%s failed (" m ")\n", msg, r, x), 0) ) -void test_wcstol(void) { +int main(void) +{ int i; long l; unsigned long ul; @@ -62,4 +63,5 @@ void test_wcstol(void) { TEST(l, wcstol(s=L"123", &c, 37), 0, "%ld != %ld"); TEST2(i, c-s, 0, "wrong final position %d != %d"); TEST2(i, errno, EINVAL, "%d != %d"); + return test_status; }