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 Fix previous



details:   https://anonhg.NetBSD.org/src/rev/e5df87ab881b
branches:  trunk
changeset: 833028:e5df87ab881b
user:      kamil <kamil%NetBSD.org@localhost>
date:      Wed Jun 06 13:18:44 2018 +0000

description:
Fix previous

The failing tests are for vfork(2), not fork(2).

diffstat:

 tests/lib/libc/sys/t_ptrace_wait.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (40 lines):

diff -r c61804427ad8 -r e5df87ab881b tests/lib/libc/sys/t_ptrace_wait.c
--- a/tests/lib/libc/sys/t_ptrace_wait.c        Wed Jun 06 13:16:32 2018 +0000
+++ b/tests/lib/libc/sys/t_ptrace_wait.c        Wed Jun 06 13:18:44 2018 +0000
@@ -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 @@
 
        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 @@
        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) {



Home | Main Index | Thread Index | Old Index