X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fsem.c;h=77d67968acae7ccd465303c0d7ea005e43e59599;hb=462b4f35652098e26c677f89df6990428a4aad6a;hp=8bc23e83525f8bdd6e8763d29d6e614470bae849;hpb=80371a77c4d6978e786ab2322161c4f8e299e891;p=libc-test diff --git a/src/thread/sem.c b/src/thread/sem.c index 8bc23e8..77d6796 100644 --- a/src/thread/sem.c +++ b/src/thread/sem.c @@ -17,7 +17,7 @@ !strcmp((s),(x)) || \ (error("[%s] != [%s] (%s)\n", s, x, m), 0) ) -void test_sem(void) +int main(void) { int r; char buf[100]; @@ -47,4 +47,5 @@ void test_sem(void) TEST(r, sem_close(sem), 0, "failed to close sem"); TEST(r, sem_close(sem), 0, "failed to close sem second time"); TEST(r, sem_unlink(buf), 0, "failed to unlink sem"); + return test_status; }