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()
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()
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()
190 VERIFY3S(thrd_create(&thrd, cthr_test_detach_thr0, NULL), ==, in cthr_test_detach()
192 VERIFY3S(thrd_join(thrd, &status), ==, thrd_success); in cthr_test_detach()
193 VERIFY3S(status, ==, 23); in cthr_test_detach()
195 VERIFY3S(thrd_create(&thrd, cthr_test_detach_thr1, NULL), ==, in cthr_test_detach()
197 VERIFY3S(thrd_join(thrd, &status), ==, thrd_success); in cthr_test_detach()
198 VERIFY3S(status, ==, 42); in cthr_test_detach()
211 VERIFY3S(thrd_sleep(&ts, NULL), <, -1); in cthr_test_sleep()
216 VERIFY3S(thrd_sleep(&ts, NULL), ==, 0); in cthr_test_sleep()
219 VERIFY3S(end - start, >, stime); in cthr_test_sleep()
225 VERIFY3S(mtx_lock(&broadcast_mtx), ==, thrd_success); in cthr_test_broadcast_thr()
227 VERIFY3S(cnd_wait(&broadcast_cnd, &broadcast_mtx), ==, in cthr_test_broadcast_thr()
229 VERIFY3S(mtx_unlock(&broadcast_mtx), ==, thrd_success); in cthr_test_broadcast_thr()
240 VERIFY3S(mtx_init(&broadcast_mtx, mtx_plain), ==, thrd_success); in cthr_test_broadcast()
241 VERIFY3S(cnd_init(&broadcast_cnd), ==, thrd_success); in cthr_test_broadcast()
243 VERIFY3S(thrd_create(&threads[i], cthr_test_broadcast_thr, in cthr_test_broadcast()
247 VERIFY3S(mtx_lock(&broadcast_mtx), ==, thrd_success); in cthr_test_broadcast()
249 VERIFY3S(mtx_unlock(&broadcast_mtx), ==, thrd_success); in cthr_test_broadcast()
250 VERIFY3S(cnd_broadcast(&broadcast_cnd), ==, thrd_success); in cthr_test_broadcast()
253 VERIFY3S(thrd_join(threads[i], NULL), ==, thrd_success); in cthr_test_broadcast()
264 VERIFY3S(mtx_lock(&signal_mtx), ==, thrd_success); in cthr_test_signal_thr()
266 VERIFY3S(cnd_wait(&signal_cnd, &signal_mtx), ==, in cthr_test_signal_thr()
268 VERIFY3S(mtx_unlock(&signal_mtx), ==, thrd_success); in cthr_test_signal_thr()
269 VERIFY3S(cnd_signal(&signal_cnd), ==, thrd_success); in cthr_test_signal_thr()
280 VERIFY3S(mtx_init(&signal_mtx, mtx_plain), ==, thrd_success); in cthr_test_signal()
281 VERIFY3S(cnd_init(&signal_cnd), ==, thrd_success); in cthr_test_signal()
283 VERIFY3S(thrd_create(&threads[i], cthr_test_signal_thr, NULL), in cthr_test_signal()
287 VERIFY3S(mtx_lock(&signal_mtx), ==, thrd_success); in cthr_test_signal()
289 VERIFY3S(mtx_unlock(&signal_mtx), ==, thrd_success); in cthr_test_signal()
290 VERIFY3S(cnd_signal(&signal_cnd), ==, thrd_success); in cthr_test_signal()
293 VERIFY3S(thrd_join(threads[i], NULL), ==, thrd_success); in cthr_test_signal()
309 VERIFY3S(mtx_init(&mtx, mtx_plain), ==, thrd_success); in cthr_test_cndtime()
310 VERIFY3S(cnd_init(&cnd), ==, thrd_success); in cthr_test_cndtime()
312 VERIFY3S(mtx_lock(&mtx), ==, thrd_success); in cthr_test_cndtime()
313 VERIFY3S(cnd_timedwait(&cnd, &mtx, &ts), ==, thrd_timedout); in cthr_test_cndtime()
314 VERIFY3S(mtx_unlock(&mtx), ==, thrd_success); in cthr_test_cndtime()
328 VERIFY3S(mtx_init(&mtx, mtx_timed), ==, thrd_success); in cthr_test_mtx_selftime()
329 VERIFY3S(mtx_lock(&mtx), ==, thrd_success); in cthr_test_mtx_selftime()
330 VERIFY3S(mtx_timedlock(&mtx, &ts), ==, thrd_timedout); in cthr_test_mtx_selftime()
331 VERIFY3S(mtx_unlock(&mtx), ==, thrd_success); in cthr_test_mtx_selftime()
344 VERIFY3S(mtx_trylock(mtx), ==, thrd_busy); in cthr_test_mtx_busy_thr()
345 VERIFY3S(mtx_timedlock(mtx, &ts), ==, thrd_timedout); in cthr_test_mtx_busy_thr()
356 VERIFY3S(mtx_init(&mtx, mtx_timed), ==, thrd_success); in cthr_test_mtx_busy()
357 VERIFY3S(mtx_lock(&mtx), ==, thrd_success); in cthr_test_mtx_busy()
359 VERIFY3S(thrd_create(&thrd, cthr_test_mtx_busy_thr, &mtx), ==, in cthr_test_mtx_busy()
361 VERIFY3S(thrd_join(thrd, NULL), ==, thrd_success); in cthr_test_mtx_busy()
363 VERIFY3S(mtx_unlock(&mtx), ==, thrd_success); in cthr_test_mtx_busy()