Lines Matching refs:FAIL_IF
49 FAIL_IF(sem_init(reader_sem, 0, 0)); in dscr_default_lockstep_test()
50 FAIL_IF(sem_init(writer_sem, 0, 1)); /* writer starts first */ in dscr_default_lockstep_test()
51 FAIL_IF(bind_to_cpu(BIND_CPU_ANY) < 0); in dscr_default_lockstep_test()
52 FAIL_IF(pthread_create(&writer, NULL, dscr_default_lockstep_writer, (void *)rw_semaphores)); in dscr_default_lockstep_test()
55 FAIL_IF(sem_wait(reader_sem)); in dscr_default_lockstep_test()
57 FAIL_IF(get_dscr() != expected_dscr); in dscr_default_lockstep_test()
58 FAIL_IF(get_dscr_usr() != expected_dscr); in dscr_default_lockstep_test()
62 FAIL_IF(sem_post(writer_sem)); in dscr_default_lockstep_test()
65 FAIL_IF(pthread_join(writer, NULL)); in dscr_default_lockstep_test()
66 FAIL_IF(sem_destroy(reader_sem)); in dscr_default_lockstep_test()
67 FAIL_IF(sem_destroy(writer_sem)); in dscr_default_lockstep_test()
129 FAIL_IF(pthread_rwlockattr_setkind_np(&rwlock_attr, in dscr_default_random_test()
131 FAIL_IF(pthread_rwlock_init(&rw_lock, &rwlock_attr)); in dscr_default_random_test()
132 FAIL_IF(pthread_barrier_init(&barrier, NULL, THREADS)); in dscr_default_random_test()
141 FAIL_IF(pthread_create(&threads[i].thread_id, NULL, in dscr_default_random_test()
146 FAIL_IF(pthread_join(threads[i].thread_id, NULL)); in dscr_default_random_test()
148 FAIL_IF(pthread_barrier_destroy(&barrier)); in dscr_default_random_test()
149 FAIL_IF(pthread_rwlock_destroy(&rw_lock)); in dscr_default_random_test()