kfdtest: Fix the childStatus is 0x7f error for KFDDBGTest.HitMemoryViolation

For the case parent goes faster then child, and child hasn't call the second
raise(SIGSTOP), then parent's "waitpid(childPid, &childStatus, 0)" will return,
and the childStatus will be 0x137f, which is SIGSTOP signal id.

Signed-off-by: Emily Deng <Emily.Deng@amd.com>
此提交包含在:
Emily Deng
2025-03-06 17:08:34 +08:00
提交者 Deng, Emily
父節點 91ef44d3ec
當前提交 42f79776cd
+3
查看文件
@@ -599,6 +599,9 @@ TEST_F(KFDDBGTest, HitMemoryViolation) {
break;
}
}
waitpid(childPid, &childStatus, 0);
while (!WIFSTOPPED(childStatus));
// Assume tracee queue has died and halted process
ptrace(PTRACE_CONT, childPid, NULL, NULL);