X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread.c;fp=src%2Fthread%2Fpthread.c;h=3c25c5741f884284aee051223c14f4511bf34c1e;hb=462b4f35652098e26c677f89df6990428a4aad6a;hp=bb2f253df2b0c7df6750ccafeaa4c1af6d8c23dc;hpb=80371a77c4d6978e786ab2322161c4f8e299e891;p=libc-test diff --git a/src/thread/pthread.c b/src/thread/pthread.c index bb2f253..3c25c57 100644 --- a/src/thread/pthread.c +++ b/src/thread/pthread.c @@ -132,8 +132,7 @@ static void *start8(void *arg) return 0; } - -void test_pthread(void) +int main(void) { pthread_t td, td1, td2, td3; int r; @@ -291,4 +290,5 @@ void test_pthread(void) TEST(r, pthread_join(td3, 0), 0, "%d != %d"); TEST(r, pthread_mutex_destroy(&mtx), 0, "%d != %d"); TEST(r, pthread_cond_destroy(&cond), 0, "%d != %d"); + return test_status; }