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 Allow to conditionally enable LWP ATF tes...



details:   https://anonhg.NetBSD.org/src/rev/eb73a243c2dd
branches:  trunk
changeset: 452115:eb73a243c2dd
user:      kamil <kamil%NetBSD.org@localhost>
date:      Tue Jun 18 21:14:26 2019 +0000

description:
Allow to conditionally enable LWP ATF tests in t_ptrace_wait*

By default the tests are disabled.

diffstat:

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

diffs (40 lines):

diff -r 57e9716c11f6 -r eb73a243c2dd tests/lib/libc/sys/t_ptrace_wait.c
--- a/tests/lib/libc/sys/t_ptrace_wait.c        Tue Jun 18 21:08:34 2019 +0000
+++ b/tests/lib/libc/sys/t_ptrace_wait.c        Tue Jun 18 21:14:26 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_ptrace_wait.c,v 1.127 2019/06/13 20:26:06 kamil Exp $        */
+/*     $NetBSD: t_ptrace_wait.c,v 1.128 2019/06/18 21:14:26 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.127 2019/06/13 20:26:06 kamil Exp $");
+__RCSID("$NetBSD: t_ptrace_wait.c,v 1.128 2019/06/18 21:14:26 kamil Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -103,6 +103,10 @@
 #define TEST_VFORK_ENABLED 1
 #endif
 
+#ifndef TEST_LWP_ENABLED
+#define TEST_LWP_ENABLED 0
+#endif
+
 /// ----------------------------------------------------------------------------
 
 static void
@@ -5454,8 +5458,10 @@
        /* 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);



Home | Main Index | Thread Index | Old Index