fix & add: testcases for refs #885, refs #1031

This commit is contained in:
Ken Sato
2018-03-01 15:41:58 +09:00
parent afcf1a24aa
commit 3432f46d8b
15 changed files with 320 additions and 42 deletions

View File

@ -69,6 +69,12 @@ int main(int argc, char** argv)
/* detach child */
rc = ptrace(PTRACE_DETACH, pid, NULL, NULL);
OKNG(rc != 0, "ptrace_detach");
/* wait child's exit */
rc = waitpid(pid, &status, 0);
CHKANDJUMP(rc == -1, "waitpid");
CHKANDJUMP(!WIFEXITED(status), "child is not exited");
}
printf("*** %s PASSED\n\n", TEST_NAME);