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 Remove preprocessor switch TEST_LWP_ENABL...



details:   https://anonhg.NetBSD.org/src/rev/9ec541d1018e
branches:  trunk
changeset: 966260:9ec541d1018e
user:      kamil <kamil%NetBSD.org@localhost>
date:      Mon Oct 21 18:36:08 2019 +0000

description:
Remove preprocessor switch TEST_LWP_ENABLED in t_ptrace_wait*

LWP tests are now enabled always and confirmed to be stable.

diffstat:

 tests/lib/libc/sys/t_ptrace_wait.c |  13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)

diffs (41 lines):

diff -r f4d8200e3d55 -r 9ec541d1018e tests/lib/libc/sys/t_ptrace_wait.c
--- a/tests/lib/libc/sys/t_ptrace_wait.c        Mon Oct 21 18:31:40 2019 +0000
+++ b/tests/lib/libc/sys/t_ptrace_wait.c        Mon Oct 21 18:36:08 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_ptrace_wait.c,v 1.139 2019/10/21 18:31:40 kamil Exp $        */
+/*     $NetBSD: t_ptrace_wait.c,v 1.140 2019/10/21 18:36:08 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.139 2019/10/21 18:31:40 kamil Exp $");
+__RCSID("$NetBSD: t_ptrace_wait.c,v 1.140 2019/10/21 18:36:08 kamil Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -121,10 +121,6 @@
        printf("%s() %s:%d " a, __func__, __FILE__, __LINE__,  ##__VA_ARGS__); \
     while (/*CONSTCOND*/0)
 
-#ifndef TEST_LWP_ENABLED
-#define TEST_LWP_ENABLED 1
-#endif
-
 /// ----------------------------------------------------------------------------
 
 static void
@@ -5484,11 +5480,6 @@
        /* Track created and exited threads */
        bool traced_lwps[__arraycount(t)];
 
-#if !TEST_LWP_ENABLED
-       if (trace_create || trace_exit)
-               atf_tc_skip("PR kern/51995");
-#endif
-
        DPRINTF("Before forking process PID=%d\n", getpid());
        SYSCALL_REQUIRE((child = fork()) != -1);
        if (child == 0) {



Home | Main Index | Thread Index | Old Index