X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdlib%2Fstrtol.c;h=81df887bf5d706053fb42a049b00086ebd78d25b;hb=462b4f35652098e26c677f89df6990428a4aad6a;hp=7d155423a6bca2e8bcaea9f3f42f83a7ebdfb200;hpb=80371a77c4d6978e786ab2322161c4f8e299e891;p=libc-test diff --git a/src/stdlib/strtol.c b/src/stdlib/strtol.c index 7d15542..81df887 100644 --- a/src/stdlib/strtol.c +++ b/src/stdlib/strtol.c @@ -18,7 +18,8 @@ ((r) = (f)) == (x) || \ (error("%s failed (" m ")\n", msg, r, x), 0) ) -void test_strtol(void) { +int main(void) +{ int i; long l; unsigned long ul; @@ -69,4 +70,5 @@ void test_strtol(void) { TEST(l, strtol(s="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; }