Lines Matching refs:VERIFY3S

65 	VERIFY3S(mtx_init(&mtx, mtx_plain), ==, thrd_success);  in cthr_test_mtx_init()
67 VERIFY3S(mtx_init(&mtx, mtx_timed), ==, thrd_success); in cthr_test_mtx_init()
69 VERIFY3S(mtx_init(&mtx, mtx_plain | mtx_recursive), ==, thrd_success); in cthr_test_mtx_init()
71 VERIFY3S(mtx_init(&mtx, mtx_timed | mtx_recursive), ==, thrd_success); in cthr_test_mtx_init()
74 VERIFY3S(mtx_init(&mtx, UINT32_MAX), ==, thrd_error); in cthr_test_mtx_init()
75 VERIFY3S(mtx_init(&mtx, 42), ==, thrd_error); in cthr_test_mtx_init()
83 VERIFY3S(mtx_init(&mtx, mtx_plain | mtx_recursive), ==, thrd_success); in cthr_test_mtx_lockrec()
84 VERIFY3S(mtx_lock(&mtx), ==, thrd_success); in cthr_test_mtx_lockrec()
85 VERIFY3S(mtx_lock(&mtx), ==, thrd_success); in cthr_test_mtx_lockrec()
86 VERIFY3S(mtx_trylock(&mtx), ==, thrd_success); in cthr_test_mtx_lockrec()
87 VERIFY3S(mtx_unlock(&mtx), ==, thrd_success); in cthr_test_mtx_lockrec()
88 VERIFY3S(mtx_unlock(&mtx), ==, thrd_success); in cthr_test_mtx_lockrec()
89 VERIFY3S(mtx_unlock(&mtx), ==, thrd_success); in cthr_test_mtx_lockrec()
98 VERIFY3S(mtx_init(&mtx, mtx_plain), ==, thrd_success); in cthr_test_mtx_trylock()
99 VERIFY3S(mtx_trylock(&mtx), ==, thrd_success); in cthr_test_mtx_trylock()
100 VERIFY3S(mtx_trylock(&mtx), ==, thrd_busy); in cthr_test_mtx_trylock()
101 VERIFY3S(mtx_unlock(&mtx), ==, thrd_success); in cthr_test_mtx_trylock()
112 VERIFY3S(mtx_lock(&stress_mtx), ==, thrd_success); in cthr_test_stress_thr()
114 VERIFY3S(mtx_unlock(&stress_mtx), ==, thrd_success); in cthr_test_stress_thr()
126 VERIFY3S(mtx_init(&stress_mtx, mtx_plain), ==, thrd_success); in cthr_test_stress()
128 VERIFY3S(thrd_create(&threads[i], cthr_test_stress_thr, in cthr_test_stress()
133 VERIFY3S(thrd_join(threads[i], NULL), ==, thrd_success); in cthr_test_stress()
137 VERIFY3S(stress_count, ==, STRESS_NTHREADS * STRESS_COUNT); in cthr_test_stress()
147 VERIFY3S(thrd_equal(self, self), !=, 0); in cthr_test_equal()
148 VERIFY3S(thrd_create(&other, cthr_test_sleep_thr, NULL), ==, in cthr_test_equal()
150 VERIFY3S(thrd_equal(self, other), ==, 0); in cthr_test_equal()
151 VERIFY3S(thrd_equal(other, other), !=, 0); in cthr_test_equal()
152 VERIFY3S(thrd_detach(other), ==, thrd_success); in cthr_test_equal()
162 VERIFY3S(thrd_equal(self, self), !=, 0); in cthr_test_detach_err()
163 VERIFY3S(thrd_create(&other, cthr_test_sleep_thr, NULL), ==, in cthr_test_detach_err()
165 VERIFY3S(thrd_detach(other), ==, thrd_success); in cthr_test_detach_err()
167 VERIFY3S(thrd_join(self, NULL), ==, thrd_error); in cthr_test_detach_err()
168 VERIFY3S(thrd_join(other, NULL), ==, thrd_error); in cthr_test_detach_err()
189 VERIFY3S(thrd_create(&thrd, cthr_test_detach_thr0, NULL), ==, in cthr_test_detach()
191 VERIFY3S(thrd_join(thrd, &status), ==, thrd_success); in cthr_test_detach()
192 VERIFY3S(status, ==, 23); in cthr_test_detach()
194 VERIFY3S(thrd_create(&thrd, cthr_test_detach_thr1, NULL), ==, in cthr_test_detach()
196 VERIFY3S(thrd_join(thrd, &status), ==, thrd_success); in cthr_test_detach()
197 VERIFY3S(status, ==, 42); in cthr_test_detach()
210 VERIFY3S(thrd_sleep(&ts, NULL), <, -1); in cthr_test_sleep()
215 VERIFY3S(thrd_sleep(&ts, NULL), ==, 0); in cthr_test_sleep()
218 VERIFY3S(end - start, >, stime); in cthr_test_sleep()
224 VERIFY3S(mtx_lock(&broadcast_mtx), ==, thrd_success); in cthr_test_broadcast_thr()
226 VERIFY3S(cnd_wait(&broadcast_cnd, &broadcast_mtx), ==, in cthr_test_broadcast_thr()
228 VERIFY3S(mtx_unlock(&broadcast_mtx), ==, thrd_success); in cthr_test_broadcast_thr()
239 VERIFY3S(mtx_init(&broadcast_mtx, mtx_plain), ==, thrd_success); in cthr_test_broadcast()
240 VERIFY3S(cnd_init(&broadcast_cnd), ==, thrd_success); in cthr_test_broadcast()
242 VERIFY3S(thrd_create(&threads[i], cthr_test_broadcast_thr, in cthr_test_broadcast()
246 VERIFY3S(mtx_lock(&broadcast_mtx), ==, thrd_success); in cthr_test_broadcast()
248 VERIFY3S(mtx_unlock(&broadcast_mtx), ==, thrd_success); in cthr_test_broadcast()
249 VERIFY3S(cnd_broadcast(&broadcast_cnd), ==, thrd_success); in cthr_test_broadcast()
252 VERIFY3S(thrd_join(threads[i], NULL), ==, thrd_success); in cthr_test_broadcast()
263 VERIFY3S(mtx_lock(&signal_mtx), ==, thrd_success); in cthr_test_signal_thr()
265 VERIFY3S(cnd_wait(&signal_cnd, &signal_mtx), ==, in cthr_test_signal_thr()
267 VERIFY3S(mtx_unlock(&signal_mtx), ==, thrd_success); in cthr_test_signal_thr()
268 VERIFY3S(cnd_signal(&signal_cnd), ==, thrd_success); in cthr_test_signal_thr()
279 VERIFY3S(mtx_init(&signal_mtx, mtx_plain), ==, thrd_success); in cthr_test_signal()
280 VERIFY3S(cnd_init(&signal_cnd), ==, thrd_success); in cthr_test_signal()
282 VERIFY3S(thrd_create(&threads[i], cthr_test_signal_thr, NULL), in cthr_test_signal()
286 VERIFY3S(mtx_lock(&signal_mtx), ==, thrd_success); in cthr_test_signal()
288 VERIFY3S(mtx_unlock(&signal_mtx), ==, thrd_success); in cthr_test_signal()
289 VERIFY3S(cnd_signal(&signal_cnd), ==, thrd_success); in cthr_test_signal()
292 VERIFY3S(thrd_join(threads[i], NULL), ==, thrd_success); in cthr_test_signal()
308 VERIFY3S(mtx_init(&mtx, mtx_plain), ==, thrd_success); in cthr_test_cndtime()
309 VERIFY3S(cnd_init(&cnd), ==, thrd_success); in cthr_test_cndtime()
311 VERIFY3S(mtx_lock(&mtx), ==, thrd_success); in cthr_test_cndtime()
312 VERIFY3S(cnd_timedwait(&cnd, &mtx, &ts), ==, thrd_timedout); in cthr_test_cndtime()
313 VERIFY3S(mtx_unlock(&mtx), ==, thrd_success); in cthr_test_cndtime()
327 VERIFY3S(mtx_init(&mtx, mtx_timed), ==, thrd_success); in cthr_test_mtx_selftime()
328 VERIFY3S(mtx_lock(&mtx), ==, thrd_success); in cthr_test_mtx_selftime()
329 VERIFY3S(mtx_timedlock(&mtx, &ts), ==, thrd_timedout); in cthr_test_mtx_selftime()
330 VERIFY3S(mtx_unlock(&mtx), ==, thrd_success); in cthr_test_mtx_selftime()
343 VERIFY3S(mtx_trylock(mtx), ==, thrd_busy); in cthr_test_mtx_busy_thr()
344 VERIFY3S(mtx_timedlock(mtx, &ts), ==, thrd_timedout); in cthr_test_mtx_busy_thr()
355 VERIFY3S(mtx_init(&mtx, mtx_timed), ==, thrd_success); in cthr_test_mtx_busy()
356 VERIFY3S(mtx_lock(&mtx), ==, thrd_success); in cthr_test_mtx_busy()
358 VERIFY3S(thrd_create(&thrd, cthr_test_mtx_busy_thr, &mtx), ==, in cthr_test_mtx_busy()
360 VERIFY3S(thrd_join(thrd, NULL), ==, thrd_success); in cthr_test_mtx_busy()
362 VERIFY3S(mtx_unlock(&mtx), ==, thrd_success); in cthr_test_mtx_busy()