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>


[ROCm/ROCR-Runtime commit: 42f79776cd]
This commit is contained in:
Emily Deng authored and Deng, Emily committed 2025-03-13 13:38:46 +08:00
1 parent 46bb10ff2d
commit af293c4a61
1 file changed
+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);