Home
last modified time | relevance | path

Searched refs:FAIL_IF_MSG (Results 1 – 4 of 4) sorted by relevance

/linux/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-perf-hwbreak.c179 FAIL_IF_MSG(ppc_ptrace_gethwdbginfo(pid, &dbginfo), "PPC_PTRACE_GETHWDBGINFO failed"); in check_watchpoints()
197 FAIL_IF_MSG(1, "Failed to fork child"); in ptrace_fork_child()
204 FAIL_IF_MSG(waitpid(*pid, &status, 0) == -1, "Failed to wait for child"); in ptrace_fork_child()
205 FAIL_IF_MSG(!WIFSTOPPED(status), "Child is not stopped"); in ptrace_fork_child()
252 FAIL_IF_MSG(perf_fd < 0, "Failed to open perf performance counter"); in same_watch_addr_test()
257 FAIL_IF_MSG(bp_id < 0, "Failed to set ptrace watchpoint"); in same_watch_addr_test()
260 FAIL_IF_MSG(ptrace_cont(pid, 0), "Failed to continue child"); in same_watch_addr_test()
262 FAIL_IF_MSG(waitpid(pid, &status, 0) == -1, "Failed to wait for child"); in same_watch_addr_test()
263 FAIL_IF_MSG(!WIFSTOPPED(status), "Child is not stopped"); in same_watch_addr_test()
264 FAIL_IF_MSG(ptrace_getreg_pc(pid, &pc), "Failed to get child PC"); in same_watch_addr_test()
[all …]
/linux/tools/testing/selftests/powerpc/dexcr/
H A Ddexcr_test.c63 FAIL_IF_MSG(err != -1, "simultaneous set and clear should be rejected"); in dexcr_prctl_aspect_test()
64 FAIL_IF_MSG(errno_save != EINVAL, "simultaneous set and clear should be rejected with EINVAL"); in dexcr_prctl_aspect_test()
68 FAIL_IF_MSG(err != -1, "simultaneous set and clear on exec should be rejected"); in dexcr_prctl_aspect_test()
69FAIL_IF_MSG(errno_save != EINVAL, "simultaneous set and clear on exec should be rejected with EINV… in dexcr_prctl_aspect_test()
73 FAIL_IF_MSG(err, "PR_PPC_DEXCR_CTRL_SET failed"); in dexcr_prctl_aspect_test()
76 FAIL_IF_MSG(!(ctrl & PR_PPC_DEXCR_CTRL_SET), "config value not PR_PPC_DEXCR_CTRL_SET"); in dexcr_prctl_aspect_test()
77 FAIL_IF_MSG(ctrl & PR_PPC_DEXCR_CTRL_CLEAR, "config value unexpected clear flag"); in dexcr_prctl_aspect_test()
78 FAIL_IF_MSG(!(aspect & mfspr(SPRN_DEXCR_RO)), "setting aspect did not take effect"); in dexcr_prctl_aspect_test()
82 FAIL_IF_MSG(err, "PR_PPC_DEXCR_CTRL_CLEAR failed"); in dexcr_prctl_aspect_test()
85 FAIL_IF_MSG(!(ctrl & PR_PPC_DEXCR_CTRL_CLEAR), "config value not PR_PPC_DEXCR_CTRL_CLEAR"); in dexcr_prctl_aspect_test()
[all …]
H A Dhashchk_test.c72 FAIL_IF_MSG(hashchk_failure_msg, hashchk_failure_msg); in hashchk_detected_test()
132 FAIL_IF_MSG(pipe(pipefd), "failed to create pipe"); in hashchk_exec_random_key_test()
144 FAIL_IF_MSG(read(pipefd[0], hash_values, sizeof(hash_values)) != sizeof(hash_values), in hashchk_exec_random_key_test()
152 FAIL_IF_MSG(count_hash_values_matches() == HASH_COUNT, "shared key detected"); in hashchk_exec_random_key_test()
208 FAIL_IF_MSG(child_stack == MAP_FAILED, "failed to map child stack"); in hashchk_clone_share_key_test()
214 FAIL_IF_MSG(count_hash_values_matches() != HASH_COUNT, in hashchk_clone_share_key_test()
/linux/tools/testing/selftests/powerpc/include/
H A Dutils.h128 #define FAIL_IF_MSG(x, msg) \ macro