Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/sys ATF ptrace(2) tests suspend1 and resume1 ...
details: https://anonhg.NetBSD.org/src/rev/20af7cd4ff36
branches: trunk
changeset: 450980:20af7cd4ff36
user: kamil <kamil%NetBSD.org@localhost>
date: Wed May 01 23:44:16 2019 +0000
description:
ATF ptrace(2) tests suspend1 and resume1 now pass
Verified on bare metal and in qemu.
PR kern/51995
diffstat:
tests/lib/libc/sys/t_ptrace_wait.c | 26 ++------------------------
1 files changed, 2 insertions(+), 24 deletions(-)
diffs (75 lines):
diff -r e481611aa952 -r 20af7cd4ff36 tests/lib/libc/sys/t_ptrace_wait.c
--- a/tests/lib/libc/sys/t_ptrace_wait.c Wed May 01 22:55:55 2019 +0000
+++ b/tests/lib/libc/sys/t_ptrace_wait.c Wed May 01 23:44:16 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ptrace_wait.c,v 1.117 2019/05/01 21:59:32 kamil Exp $ */
+/* $NetBSD: t_ptrace_wait.c,v 1.118 2019/05/01 23:44:16 kamil Exp $ */
/*-
* Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_ptrace_wait.c,v 1.117 2019/05/01 21:59:32 kamil Exp $");
+__RCSID("$NetBSD: t_ptrace_wait.c,v 1.118 2019/05/01 23:44:16 kamil Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -6228,12 +6228,6 @@
struct ptrace_siginfo psi;
volatile int go = 0;
- // Feature pending for refactoring
- atf_tc_expect_fail("PR kern/51995");
-
- // Hangs with qemu
- ATF_REQUIRE(0 && "In order to get reliable failure, abort");
-
DPRINTF("Before forking process PID=%d\n", getpid());
SYSCALL_REQUIRE((child = fork()) != -1);
if (child == 0) {
@@ -6355,12 +6349,6 @@
#endif
struct ptrace_siginfo psi;
- // Feature pending for refactoring
- atf_tc_expect_fail("PR kern/51995");
-
- // Hangs with qemu
- ATF_REQUIRE(0 && "In order to get reliable failure, abort");
-
DPRINTF("Before forking process PID=%d\n", getpid());
SYSCALL_REQUIRE((child = fork()) != -1);
if (child == 0) {
@@ -6412,7 +6400,6 @@
ATF_TC(resume1);
ATF_TC_HEAD(resume1, tc)
{
- atf_tc_set_md_var(tc, "timeout", "5");
atf_tc_set_md_var(tc, "descr",
"Verify that a thread can be suspended by a debugger and later "
"resumed by the debugger");
@@ -6435,12 +6422,6 @@
struct ptrace_lwpinfo pl;
struct ptrace_siginfo psi;
- // Feature pending for refactoring
- atf_tc_expect_fail("PR kern/51995");
-
- // Hangs with qemu
- ATF_REQUIRE(0 && "In order to get reliable failure, abort");
-
SYSCALL_REQUIRE(msg_open(&fds) == 0);
DPRINTF("Before forking process PID=%d\n", getpid());
@@ -6543,9 +6524,6 @@
TWAIT_REQUIRE_FAILURE(ECHILD, wpid = TWAIT_GENERIC(child, &status, 0));
msg_close(&fds);
-
- DPRINTF("XXX: Test worked this time but for consistency timeout it\n");
- sleep(10);
}
ATF_TC(syscall1);
Home |
Main Index |
Thread Index |
Old Index