X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Ffunctional%2Fpthread_cancel.c;h=26db8f3eef8df0184f66a6a521d75c1252a9637f;hb=a2e22ac14e13af5677a12bcf3c9583447615a4ff;hp=cbdd37a4f27bfe93b48f04f6cdb4de08370f7e67;hpb=08cb396fb7dbb632c49b0893a8e116269f195844;p=libc-test diff --git a/src/functional/pthread_cancel.c b/src/functional/pthread_cancel.c index cbdd37a..26db8f3 100644 --- a/src/functional/pthread_cancel.c +++ b/src/functional/pthread_cancel.c @@ -3,9 +3,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 void *start_async(void *arg) { @@ -94,5 +94,5 @@ int main(void) TESTC(foo[2] == 3, "cleanup handler failed to run"); TESTC(foo[3] == 4, "cleanup handler failed to run"); - return test_status; + return t_status; }