Lines Matching refs:TEST

5 #define TEST(r, f, m) ( \
42 TEST(r, pthread_mutex_init(&mtx, 0), "");
43 TEST(r, pthread_cond_init(&cond, 0), "");
44 TEST(r, pthread_mutex_lock(&mtx), "");
45 TEST(r, pthread_create(&td, 0, start_signal, (void *[]){ &cond, &mtx }), "");
46 TEST(r, pthread_cond_wait(&cond, &mtx), "");
47 TEST(r, pthread_join(td, &res), "");
48 TEST(r, pthread_mutex_unlock(&mtx), "");
49 TEST(r, pthread_mutex_destroy(&mtx), "");
50 TEST(r, pthread_cond_destroy(&cond), "");
53 TEST(r, pthread_mutex_init(&mtx, 0), "");
54 TEST(r, pthread_cond_init(&cond, 0), "");
55 TEST(r, pthread_mutex_lock(&mtx), "");
57 TEST(r, pthread_create(&td1, 0, start_wait, (void *[]){ &cond, &mtx, foo }), "");
58 TEST(r, pthread_create(&td2, 0, start_wait, (void *[]){ &cond, &mtx, foo }), "");
59 TEST(r, pthread_create(&td3, 0, start_wait, (void *[]){ &cond, &mtx, foo }), "");
60 TEST(r, pthread_mutex_unlock(&mtx), "");
63 TEST(r, pthread_mutex_lock(&mtx), "");
64 TEST(r, pthread_cond_signal(&cond), "");
65 TEST(r, pthread_mutex_unlock(&mtx), "");
66 TEST(r, pthread_mutex_lock(&mtx), "");
67 TEST(r, pthread_cond_signal(&cond), "");
68 TEST(r, pthread_mutex_unlock(&mtx), "");
69 TEST(r, pthread_mutex_lock(&mtx), "");
70 TEST(r, pthread_cond_signal(&cond), "");
71 TEST(r, pthread_mutex_unlock(&mtx), "");
72 TEST(r, pthread_join(td1, 0), "");
73 TEST(r, pthread_join(td2, 0), "");
74 TEST(r, pthread_join(td3, 0), "");
75 TEST(r, pthread_mutex_destroy(&mtx), "");
76 TEST(r, pthread_cond_destroy(&cond), "");
79 TEST(r, pthread_mutex_init(&mtx, 0), "");
80 TEST(r, pthread_cond_init(&cond, 0), "");
81 TEST(r, pthread_mutex_lock(&mtx), "");
83 TEST(r, pthread_create(&td1, 0, start_wait, (void *[]){ &cond, &mtx, foo }), "");
84 TEST(r, pthread_create(&td2, 0, start_wait, (void *[]){ &cond, &mtx, foo }), "");
85 TEST(r, pthread_create(&td3, 0, start_wait, (void *[]){ &cond, &mtx, foo }), "");
86 TEST(r, pthread_mutex_unlock(&mtx), "");
88 TEST(r, pthread_mutex_lock(&mtx), "");
90 TEST(r, pthread_mutex_unlock(&mtx), "");
91 TEST(r, pthread_cond_broadcast(&cond), "");
92 TEST(r, pthread_join(td1, 0), "");
93 TEST(r, pthread_join(td2, 0), "");
94 TEST(r, pthread_join(td3, 0), "");
95 TEST(r, pthread_mutex_destroy(&mtx), "");
96 TEST(r, pthread_cond_destroy(&cond), "");