Module Name: src Committed By: kamil Date: Mon Dec 25 12:38:01 UTC 2017
Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: atf: t_ptrace_wait: Mark attach2 as racy To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/tests/lib/libc/sys/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/lib/libc/sys/t_ptrace_wait.c diff -u src/tests/lib/libc/sys/t_ptrace_wait.c:1.18 src/tests/lib/libc/sys/t_ptrace_wait.c:1.19 --- src/tests/lib/libc/sys/t_ptrace_wait.c:1.18 Sat Dec 23 22:07:57 2017 +++ src/tests/lib/libc/sys/t_ptrace_wait.c Mon Dec 25 12:38:01 2017 @@ -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 @@ ATF_TC_BODY(attach2, tc) 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 @@ ATF_TC_BODY(attach2, tc) msg_close(&parent_tracer); msg_close(&parent_tracee); + // Test is racy + ATF_REQUIRE(0 && "In order to get reliable failure, abort"); } #endif