X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Ffunctional%2Fstrtol.c;h=64909136abbf2494b8b83206248b347bd6538865;hb=d643f9eb7daeafe25ff81dcd2d4f239803823940;hp=676a2c7fe5f28752e0b6002c2b474ca0f9c4981d;hpb=0c5fb5124c162a631c247ed63c3a995df2914ff8;p=libc-test diff --git a/src/functional/strtol.c b/src/functional/strtol.c index 676a2c7..6490913 100644 --- a/src/functional/strtol.c +++ b/src/functional/strtol.c @@ -12,11 +12,11 @@ #define TEST(r, f, x, m) ( \ errno = 0, msg = #f, ((r) = (f)) == (x) || \ - (error("%s failed (" m ")\n", #f, r, x), 0) ) + (t_error("%s failed (" m ")\n", #f, r, x), 0) ) #define TEST2(r, f, x, m) ( \ ((r) = (f)) == (x) || \ - (error("%s failed (" m ")\n", msg, r, x), 0) ) + (t_error("%s failed (" m ")\n", msg, r, x), 0) ) int main(void) { @@ -76,5 +76,5 @@ int main(void) TEST(l, strtol(s=" 1", &c, 0), 1, "%ld != %ld"); TEST2(i, c-s, 3, "wrong final position %d != %d"); - return test_status; + return t_status; }