X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Ffunctional%2Fpthread_tsd.c;h=6e6360d918a2b0866a0b097e36ced2dff661e152;hb=2c671f66e28ac079ae1148f5135c9a52129cc807;hp=477496a8ef1017f082a2b407d11b0da9ef9faf32;hpb=08cb396fb7dbb632c49b0893a8e116269f195844;p=libc-test diff --git a/src/functional/pthread_tsd.c b/src/functional/pthread_tsd.c index 477496a..6e6360d 100644 --- a/src/functional/pthread_tsd.c +++ b/src/functional/pthread_tsd.c @@ -2,9 +2,9 @@ #include #include "test.h" -#define TESTC(c, m) ( (c) || (error("%s failed (" m ")\n", #c), 0) ) +#define TESTC(c, m) ( (c) || (t_error("%s failed (" m ")\n", #c), 0) ) #define TESTR(r, f, m) ( \ - ((r) = (f)) == 0 || (error("%s failed: %s (" m ")\n", #f, strerror(r)), 0) ) + ((r) = (f)) == 0 || (t_error("%s failed: %s (" m ")\n", #f, strerror(r)), 0) ) static pthread_key_t k1, k2; @@ -45,5 +45,5 @@ int main(void) TESTR(r, pthread_setspecific(k2, 0), "failed to clear tsd"); TESTR(r, pthread_key_delete(k1), "failed to destroy key"); TESTR(r, pthread_key_delete(k2), "failed to destroy key"); - return test_status; + return t_status; }