X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Ffunctional%2Ftls_init.c;h=d8b6e8f82fed73be11bbf183c2f3c6d2285955b6;hb=cc36e56b44b013b25a5bea2f9cda309976058dba;hp=8a438297dac43df7b1a1dfa3e1a1222c2e040255;hpb=2cf89517c5b25c2524fe0c0c01ed277d7307a852;p=libc-test diff --git a/src/functional/tls_init.c b/src/functional/tls_init.c index 8a43829..d8b6e8f 100644 --- a/src/functional/tls_init.c +++ b/src/functional/tls_init.c @@ -7,15 +7,15 @@ __thread int tls_zero; static void *f(void *arg) { if (tls_fix != 23) - error("fixed init failed: want 23 got %d\n", tls_fix); + t_error("fixed init failed: want 23 got %d\n", tls_fix); if (tls_zero != 0) - error("zero init failed: want 0 got %d\n", tls_zero); + t_error("zero init failed: want 0 got %d\n", tls_zero); tls_fix++; tls_zero++; return 0; } -#define CHECK(f) do{ if(f) error("%s failed.\n", #f); }while(0) +#define CHECK(f) do{ if(f) t_error("%s failed.\n", #f); }while(0) #define length(a) (sizeof(a)/sizeof*(a)) int main() @@ -24,9 +24,9 @@ int main() int i, j; if (tls_fix != 23) - error("fixed init failed: want 23 got %d\n", tls_fix); + t_error("fixed init failed: want 23 got %d\n", tls_fix); if (tls_zero != 0) - error("zero init failed: want 0 got %d\n", tls_zero); + t_error("zero init failed: want 0 got %d\n", tls_zero); for (j = 0; j < 2; j++) { for (i = 0; i < length(t); i++) { @@ -38,5 +38,5 @@ int main() CHECK(pthread_join(t[i], 0)); } - return test_status; + return t_status; }