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: t_ptrace_wait: Mark attach2 as racy
details: https://anonhg.NetBSD.org/src/rev/325842a063b1
branches: trunk
changeset: 828667:325842a063b1
user: kamil <kamil%NetBSD.org@localhost>
date: Mon Dec 25 12:38:01 2017 +0000
description:
atf: t_ptrace_wait: Mark attach2 as racy
diffstat:
tests/lib/libc/sys/t_ptrace_wait.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (37 lines):
diff -r 79cb4c571704 -r 325842a063b1 tests/lib/libc/sys/t_ptrace_wait.c
--- a/tests/lib/libc/sys/t_ptrace_wait.c Mon Dec 25 11:03:30 2017 +0000
+++ b/tests/lib/libc/sys/t_ptrace_wait.c Mon Dec 25 12:38:01 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ptrace_wait.c,v 1.18 2017/12/23 22:07:57 christos Exp $ */
+/* $NetBSD: t_ptrace_wait.c,v 1.19 2017/12/25 12:38:01 kamil Exp $ */
/*-
* Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_ptrace_wait.c,v 1.18 2017/12/23 22:07:57 christos Exp $");
+__RCSID("$NetBSD: t_ptrace_wait.c,v 1.19 2017/12/25 12:38:01 kamil Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -424,6 +424,9 @@
int status;
#endif
+ // Feature pending for refactoring
+ atf_tc_expect_fail("test is racy");
+
DPRINTF("Spawn tracee\n");
SYSCALL_REQUIRE(msg_open(&parent_tracee) == 0);
tracee = atf_utils_fork();
@@ -505,6 +508,8 @@
msg_close(&parent_tracer);
msg_close(&parent_tracee);
+ // Test is racy
+ ATF_REQUIRE(0 && "In order to get reliable failure, abort");
}
#endif
Home |
Main Index |
Thread Index |
Old Index