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 clang(1) build



details:   https://anonhg.NetBSD.org/src/rev/3f6998a2ce71
branches:  trunk
changeset: 969399:3f6998a2ce71
user:      kamil <kamil%NetBSD.org@localhost>
date:      Wed Feb 19 17:13:00 2020 +0000

description:
Fix clang(1) build

Namespace a symbol that can be unused.

diffstat:

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

diffs (34 lines):

diff -r 6e34d142bf8b -r 3f6998a2ce71 tests/lib/libc/sys/t_ptrace_wait.c
--- a/tests/lib/libc/sys/t_ptrace_wait.c        Wed Feb 19 17:05:06 2020 +0000
+++ b/tests/lib/libc/sys/t_ptrace_wait.c        Wed Feb 19 17:13:00 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_ptrace_wait.c,v 1.162 2020/02/13 15:27:41 mgorny Exp $       */
+/*     $NetBSD: t_ptrace_wait.c,v 1.163 2020/02/19 17:13:00 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.162 2020/02/13 15:27:41 mgorny Exp $");
+__RCSID("$NetBSD: t_ptrace_wait.c,v 1.163 2020/02/19 17:13:00 kamil Exp $");
 
 #define __LEGACY_PT_LWPINFO
 
@@ -8948,6 +8948,7 @@
     "Verify that concurrent signals issued to a single thread are reported "
     "correctly and passed back to a handler function");
 
+#if defined(__i386__) || defined(__x86_64__)
 THREAD_CONCURRENT_TEST(thread_concurrent_breakpoints, TCSH_DISCARD,
     THREAD_CONCURRENT_BREAKPOINT_NUM, 0, 0,
     "Verify that concurrent breakpoints are reported correctly");
@@ -8998,6 +8999,7 @@
     THREAD_CONCURRENT_WATCHPOINT_NUM,
     "Verify that concurrent breakpoints, watchpoints and signals are reported "
     "correctly and passed back to a handler function");
+#endif
 
 #endif /*defined(TWAIT_HAVE_STATUS)*/
 



Home | Main Index | Thread Index | Old Index