Lines Matching refs:FAIL_IF
65 FAIL_IF(sem_init(prev, 0, 0)); in dscr_explicit_lockstep_test()
66 FAIL_IF(sem_init(next, 0, 1)); /* other thread starts first */ in dscr_explicit_lockstep_test()
67 FAIL_IF(bind_to_cpu(BIND_CPU_ANY) < 0); in dscr_explicit_lockstep_test()
68 FAIL_IF(pthread_create(&thread, NULL, dscr_explicit_lockstep_thread, (void *)semaphores)); in dscr_explicit_lockstep_test()
71 FAIL_IF(sem_wait(prev)); in dscr_explicit_lockstep_test()
73 FAIL_IF(expected_dscr != get_dscr()); in dscr_explicit_lockstep_test()
74 FAIL_IF(expected_dscr != get_dscr_usr()); in dscr_explicit_lockstep_test()
79 FAIL_IF(sem_post(next)); in dscr_explicit_lockstep_test()
82 FAIL_IF(pthread_join(thread, NULL)); in dscr_explicit_lockstep_test()
83 FAIL_IF(sem_destroy(prev)); in dscr_explicit_lockstep_test()
84 FAIL_IF(sem_destroy(next)); in dscr_explicit_lockstep_test()
140 FAIL_IF(pthread_barrier_init(&barrier, NULL, THREADS)); in dscr_explicit_random_test()
146 FAIL_IF(pthread_create(&threads[i].thread_id, NULL, in dscr_explicit_random_test()
151 FAIL_IF(pthread_join(threads[i].thread_id, NULL)); in dscr_explicit_random_test()
153 FAIL_IF(pthread_barrier_destroy(&barrier)); in dscr_explicit_random_test()