Module Name: src
Committed By: christos
Date: Sat Nov 12 20:03:53 UTC 2016
Modified Files:
src/tests/kernel: t_ptrace_wait.c
Log Message:
back to expecting SIGSTOP after ptrace
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/tests/kernel/t_ptrace_wait.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/kernel/t_ptrace_wait.c
diff -u src/tests/kernel/t_ptrace_wait.c:1.9 src/tests/kernel/t_ptrace_wait.c:1.10
--- src/tests/kernel/t_ptrace_wait.c:1.9 Sat Nov 12 14:44:59 2016
+++ src/tests/kernel/t_ptrace_wait.c Sat Nov 12 15:03:53 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ptrace_wait.c,v 1.9 2016/11/12 19:44:59 christos Exp $ */
+/* $NetBSD: t_ptrace_wait.c,v 1.10 2016/11/12 20:03:53 christos Exp $ */
/*-
* Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_ptrace_wait.c,v 1.9 2016/11/12 19:44:59 christos Exp $");
+__RCSID("$NetBSD: t_ptrace_wait.c,v 1.10 2016/11/12 20:03:53 christos Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -615,7 +615,7 @@ ATF_TC_BODY(attach1, tc)
FORKEE_REQUIRE_SUCCESS(
wpid = TWAIT_GENERIC(tracee, &status, 0), tracee);
- forkee_status_stopped(status, SIGTRAP);
+ forkee_status_stopped(status, SIGSTOP);
/* Resume tracee with PT_CONTINUE */
FORKEE_ASSERT(ptrace(PT_CONTINUE, tracee, (void *)1, 0) != -1);
@@ -743,7 +743,7 @@ ATF_TC_BODY(attach2, tc)
FORKEE_REQUIRE_SUCCESS(
wpid = TWAIT_GENERIC(tracee, &status, 0), tracee);
- forkee_status_stopped(status, SIGTRAP);
+ forkee_status_stopped(status, SIGSTOP);
/* Resume tracee with PT_CONTINUE */
FORKEE_ASSERT(ptrace(PT_CONTINUE, tracee, (void *)1, 0) != -1);
@@ -952,7 +952,7 @@ ATF_TC_BODY(attach4, tc)
FORKEE_REQUIRE_SUCCESS(
wpid = TWAIT_GENERIC(getppid(), &status, 0), getppid());
- forkee_status_stopped(status, SIGTRAP);
+ forkee_status_stopped(status, SIGSTOP);
printf("Resume parent with PT_DETACH\n");
FORKEE_ASSERT(ptrace(PT_DETACH, getppid(), (void *)1, 0)
@@ -1071,7 +1071,7 @@ ATF_TC_BODY(attach5, tc)
FORKEE_REQUIRE_SUCCESS(
wpid = TWAIT_GENERIC(tracee, &status, 0), tracee);
- forkee_status_stopped(status, SIGTRAP);
+ forkee_status_stopped(status, SIGSTOP);
/* Resume tracee with PT_CONTINUE */
FORKEE_ASSERT(ptrace(PT_CONTINUE, tracee, (void *)1, 0) != -1);