Lines Matching refs:FAIL_IF
98 FAIL_IF(mprotect(insns, pgsize, rights) != 0); in check_exec_fault()
101 FAIL_IF(remaining_faults != 0); in check_exec_fault()
103 FAIL_IF(!is_fault_expected(fault_code)); in check_exec_fault()
122 FAIL_IF(sigprocmask(SIG_SETMASK, 0, &segv_act.sa_mask) != 0); in test()
125 FAIL_IF(sigaction(SIGSEGV, &segv_act, NULL) != 0); in test()
130 FAIL_IF(sigprocmask(SIG_SETMASK, 0, &trap_act.sa_mask) != 0); in test()
133 FAIL_IF(sigaction(SIGTRAP, &trap_act, NULL) != 0); in test()
140 FAIL_IF(insns == MAP_FAILED); in test()
173 FAIL_IF(mprotect(insns, pgsize, PROT_EXEC) != 0); in test()
175 FAIL_IF(remaining_faults != 0 || !is_fault_expected(fault_code)); in test()
185 FAIL_IF(mprotect(insns, pgsize, PROT_EXEC) != 0); in test()
187 FAIL_IF(remaining_faults != 0 || !is_fault_expected(fault_code)); in test()
191 FAIL_IF(check_exec_fault(PROT_NONE)); in test()
195 FAIL_IF(check_exec_fault(PROT_READ)); in test()
199 FAIL_IF(check_exec_fault(PROT_WRITE)); in test()
203 FAIL_IF(check_exec_fault(PROT_READ | PROT_WRITE)); in test()
207 FAIL_IF(check_exec_fault(PROT_EXEC)); in test()
211 FAIL_IF(check_exec_fault(PROT_READ | PROT_EXEC)); in test()
215 FAIL_IF(check_exec_fault(PROT_WRITE | PROT_EXEC)); in test()
219 FAIL_IF(check_exec_fault(PROT_READ | PROT_WRITE | PROT_EXEC)); in test()
223 FAIL_IF(munmap((void *)insns, pgsize)); in test()