diff options
| author | kamil <kamil@NetBSD.org> | 2018-06-06 13:18:44 +0000 |
|---|---|---|
| committer | kamil <kamil@NetBSD.org> | 2018-06-06 13:18:44 +0000 |
| commit | 4e57a7fbf28822c083eed6b0e24febc080d53f97 (patch) | |
| tree | 3501ed714a7b6d602c87782eab6f194c2a62f40d /tests | |
| parent | 3597b0bf1f3971ca65bb4a6bde3383cd83b08ee6 (diff) | |
Fix previous
The failing tests are for vfork(2), not fork(2).
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/lib/libc/sys/t_ptrace_wait.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/lib/libc/sys/t_ptrace_wait.c b/tests/lib/libc/sys/t_ptrace_wait.c index e3b13832670..bb05e218057 100644 --- a/tests/lib/libc/sys/t_ptrace_wait.c +++ b/tests/lib/libc/sys/t_ptrace_wait.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_ptrace_wait.c,v 1.62 2018/06/06 13:16:32 kamil Exp $ */ +/* $NetBSD: t_ptrace_wait.c,v 1.63 2018/06/06 13:18:44 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.62 2018/06/06 13:16:32 kamil Exp $"); +__RCSID("$NetBSD: t_ptrace_wait.c,v 1.63 2018/06/06 13:18:44 kamil Exp $"); #include <sys/param.h> #include <sys/types.h> @@ -191,10 +191,6 @@ traceme_crash(int sig) memset(&info, 0, sizeof(info)); - if (sig == SIGBUS) { - atf_tc_expect_fail("lib/53343"); - } - DPRINTF("Before forking process PID=%d\n", getpid()); SYSCALL_REQUIRE((child = fork()) != -1); if (child == 0) { @@ -873,6 +869,10 @@ traceme_vfork_crash(int sig) int status; #endif + if (sig == SIGBUS) { + atf_tc_expect_fail("lib/53343"); + } + DPRINTF("Before forking process PID=%d\n", getpid()); SYSCALL_REQUIRE((child = vfork()) != -1); if (child == 0) { |
