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 Link t_ptrace_wait* tests with -pthread
details: https://anonhg.NetBSD.org/src/rev/71c16254312d
branches: trunk
changeset: 448820:71c16254312d
user: kamil <kamil%NetBSD.org@localhost>
date: Sun Feb 10 02:13:45 2019 +0000
description:
Link t_ptrace_wait* tests with -pthread
While there, bump (c) for ATF ptrace(2) tests.
Add __used in infinite_thread() for consistency with other functions in
the file.
diffstat:
tests/lib/libc/sys/Makefile | 9 ++++++++-
tests/lib/libc/sys/t_ptrace_amd64_wait.h | 4 ++--
tests/lib/libc/sys/t_ptrace_i386_wait.h | 4 ++--
tests/lib/libc/sys/t_ptrace_wait.c | 6 +++---
tests/lib/libc/sys/t_ptrace_wait.h | 6 +++---
tests/lib/libc/sys/t_ptrace_wait3.c | 4 ++--
tests/lib/libc/sys/t_ptrace_wait4.c | 4 ++--
tests/lib/libc/sys/t_ptrace_wait6.c | 4 ++--
tests/lib/libc/sys/t_ptrace_waitid.c | 4 ++--
tests/lib/libc/sys/t_ptrace_waitpid.c | 4 ++--
tests/lib/libc/sys/t_ptrace_x86_wait.h | 4 ++--
11 files changed, 30 insertions(+), 23 deletions(-)
diffs (171 lines):
diff -r 590947b76c7b -r 71c16254312d tests/lib/libc/sys/Makefile
--- a/tests/lib/libc/sys/Makefile Sun Feb 10 02:04:06 2019 +0000
+++ b/tests/lib/libc/sys/Makefile Sun Feb 10 02:13:45 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.53 2018/08/21 10:38:09 christos Exp $
+# $NetBSD: Makefile,v 1.54 2019/02/10 02:13:45 kamil Exp $
MKMAN= no
@@ -88,6 +88,13 @@
LDADD.t_getpid+= -lpthread
+LDFLAGS.t_ptrace_wait+= -pthread
+LDFLAGS.t_ptrace_wait3+= -pthread
+LDFLAGS.t_ptrace_wait4+= -pthread
+LDFLAGS.t_ptrace_wait6+= -pthread
+LDFLAGS.t_ptrace_waitid+= -pthread
+LDFLAGS.t_ptrace_waitpid+= -pthread
+
.if (${MKRUMP} != "no") && !defined(BSD_MK_COMPAT_FILE)
CPPFLAGS.t_posix_fadvise.c += -D_KERNTYPES
TESTS_C+= t_posix_fadvise
diff -r 590947b76c7b -r 71c16254312d tests/lib/libc/sys/t_ptrace_amd64_wait.h
--- a/tests/lib/libc/sys/t_ptrace_amd64_wait.h Sun Feb 10 02:04:06 2019 +0000
+++ b/tests/lib/libc/sys/t_ptrace_amd64_wait.h Sun Feb 10 02:13:45 2019 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: t_ptrace_amd64_wait.h,v 1.5 2018/05/26 20:27:48 kamil Exp $ */
+/* $NetBSD: t_ptrace_amd64_wait.h,v 1.6 2019/02/10 02:13:45 kamil Exp $ */
/*-
- * Copyright (c) 2016 The NetBSD Foundation, Inc.
+ * Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff -r 590947b76c7b -r 71c16254312d tests/lib/libc/sys/t_ptrace_i386_wait.h
--- a/tests/lib/libc/sys/t_ptrace_i386_wait.h Sun Feb 10 02:04:06 2019 +0000
+++ b/tests/lib/libc/sys/t_ptrace_i386_wait.h Sun Feb 10 02:13:45 2019 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: t_ptrace_i386_wait.h,v 1.2 2017/12/14 22:06:54 christos Exp $ */
+/* $NetBSD: t_ptrace_i386_wait.h,v 1.3 2019/02/10 02:13:45 kamil Exp $ */
/*-
- * Copyright (c) 2016 The NetBSD Foundation, Inc.
+ * Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff -r 590947b76c7b -r 71c16254312d tests/lib/libc/sys/t_ptrace_wait.c
--- a/tests/lib/libc/sys/t_ptrace_wait.c Sun Feb 10 02:04:06 2019 +0000
+++ b/tests/lib/libc/sys/t_ptrace_wait.c Sun Feb 10 02:13:45 2019 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: t_ptrace_wait.c,v 1.77 2019/02/10 02:04:06 kamil Exp $ */
+/* $NetBSD: t_ptrace_wait.c,v 1.78 2019/02/10 02:13:45 kamil Exp $ */
/*-
- * Copyright (c) 2016 The NetBSD Foundation, Inc.
+ * Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_ptrace_wait.c,v 1.77 2019/02/10 02:04:06 kamil Exp $");
+__RCSID("$NetBSD: t_ptrace_wait.c,v 1.78 2019/02/10 02:13:45 kamil Exp $");
#include <sys/param.h>
#include <sys/types.h>
diff -r 590947b76c7b -r 71c16254312d tests/lib/libc/sys/t_ptrace_wait.h
--- a/tests/lib/libc/sys/t_ptrace_wait.h Sun Feb 10 02:04:06 2019 +0000
+++ b/tests/lib/libc/sys/t_ptrace_wait.h Sun Feb 10 02:13:45 2019 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: t_ptrace_wait.h,v 1.13 2019/02/09 23:10:42 kamil Exp $ */
+/* $NetBSD: t_ptrace_wait.h,v 1.14 2019/02/10 02:13:45 kamil Exp $ */
/*-
- * Copyright (c) 2016 The NetBSD Foundation, Inc.
+ * Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -503,7 +503,7 @@
}
}
-static void *
+static void * __used
infinite_thread(void *arg __unused)
{
diff -r 590947b76c7b -r 71c16254312d tests/lib/libc/sys/t_ptrace_wait3.c
--- a/tests/lib/libc/sys/t_ptrace_wait3.c Sun Feb 10 02:04:06 2019 +0000
+++ b/tests/lib/libc/sys/t_ptrace_wait3.c Sun Feb 10 02:13:45 2019 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: t_ptrace_wait3.c,v 1.1 2017/04/02 21:44:00 kamil Exp $ */
+/* $NetBSD: t_ptrace_wait3.c,v 1.2 2019/02/10 02:13:45 kamil Exp $ */
/*-
- * Copyright (c) 2016 The NetBSD Foundation, Inc.
+ * Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff -r 590947b76c7b -r 71c16254312d tests/lib/libc/sys/t_ptrace_wait4.c
--- a/tests/lib/libc/sys/t_ptrace_wait4.c Sun Feb 10 02:04:06 2019 +0000
+++ b/tests/lib/libc/sys/t_ptrace_wait4.c Sun Feb 10 02:13:45 2019 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: t_ptrace_wait4.c,v 1.1 2017/04/02 21:44:00 kamil Exp $ */
+/* $NetBSD: t_ptrace_wait4.c,v 1.2 2019/02/10 02:13:45 kamil Exp $ */
/*-
- * Copyright (c) 2016 The NetBSD Foundation, Inc.
+ * Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff -r 590947b76c7b -r 71c16254312d tests/lib/libc/sys/t_ptrace_wait6.c
--- a/tests/lib/libc/sys/t_ptrace_wait6.c Sun Feb 10 02:04:06 2019 +0000
+++ b/tests/lib/libc/sys/t_ptrace_wait6.c Sun Feb 10 02:13:45 2019 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: t_ptrace_wait6.c,v 1.1 2017/04/02 21:44:00 kamil Exp $ */
+/* $NetBSD: t_ptrace_wait6.c,v 1.2 2019/02/10 02:13:45 kamil Exp $ */
/*-
- * Copyright (c) 2016 The NetBSD Foundation, Inc.
+ * Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff -r 590947b76c7b -r 71c16254312d tests/lib/libc/sys/t_ptrace_waitid.c
--- a/tests/lib/libc/sys/t_ptrace_waitid.c Sun Feb 10 02:04:06 2019 +0000
+++ b/tests/lib/libc/sys/t_ptrace_waitid.c Sun Feb 10 02:13:45 2019 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: t_ptrace_waitid.c,v 1.1 2017/04/02 21:44:00 kamil Exp $ */
+/* $NetBSD: t_ptrace_waitid.c,v 1.2 2019/02/10 02:13:45 kamil Exp $ */
/*-
- * Copyright (c) 2016 The NetBSD Foundation, Inc.
+ * Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff -r 590947b76c7b -r 71c16254312d tests/lib/libc/sys/t_ptrace_waitpid.c
--- a/tests/lib/libc/sys/t_ptrace_waitpid.c Sun Feb 10 02:04:06 2019 +0000
+++ b/tests/lib/libc/sys/t_ptrace_waitpid.c Sun Feb 10 02:13:45 2019 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: t_ptrace_waitpid.c,v 1.1 2017/04/02 21:44:00 kamil Exp $ */
+/* $NetBSD: t_ptrace_waitpid.c,v 1.2 2019/02/10 02:13:45 kamil Exp $ */
/*-
- * Copyright (c) 2016 The NetBSD Foundation, Inc.
+ * Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff -r 590947b76c7b -r 71c16254312d tests/lib/libc/sys/t_ptrace_x86_wait.h
--- a/tests/lib/libc/sys/t_ptrace_x86_wait.h Sun Feb 10 02:04:06 2019 +0000
+++ b/tests/lib/libc/sys/t_ptrace_x86_wait.h Sun Feb 10 02:13:45 2019 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: t_ptrace_x86_wait.h,v 1.8 2019/02/05 02:57:10 kamil Exp $ */
+/* $NetBSD: t_ptrace_x86_wait.h,v 1.9 2019/02/10 02:13:45 kamil Exp $ */
/*-
- * Copyright (c) 2016 The NetBSD Foundation, Inc.
+ * Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Home |
Main Index |
Thread Index |
Old Index