This child is expected to exit on SIGTRAP, don't leave a core behind.
MFC after: 1 week Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
3f7047aeeb
commit
fc1e29dc35
@ -2467,12 +2467,16 @@ ATF_TC_WITHOUT_HEAD(ptrace__PT_CONTINUE_with_sigtrap_system_call_entry);
|
||||
ATF_TC_BODY(ptrace__PT_CONTINUE_with_sigtrap_system_call_entry, tc)
|
||||
{
|
||||
struct ptrace_lwpinfo pl;
|
||||
struct rlimit rl;
|
||||
pid_t fpid, wpid;
|
||||
int status;
|
||||
|
||||
ATF_REQUIRE((fpid = fork()) != -1);
|
||||
if (fpid == 0) {
|
||||
trace_me();
|
||||
/* SIGTRAP expected to cause exit on syscall entry. */
|
||||
rl.rlim_cur = rl.rlim_max = 0;
|
||||
ATF_REQUIRE(setrlimit(RLIMIT_CORE, &rl) == 0);
|
||||
getpid();
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user