Module Name:    src
Committed By:   kamil
Date:           Sat Feb  9 23:10:42 UTC 2019

Modified Files:
        src/tests/lib/libc/sys: t_ptrace_wait.h

Log Message:
Add infinite_thread() for ptrace(2) ATF tests

infinite_thread() is designed to be spawned as a pthread(3) function.

It will be used soon in new tests.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/tests/lib/libc/sys/t_ptrace_wait.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libc/sys/t_ptrace_wait.h
diff -u src/tests/lib/libc/sys/t_ptrace_wait.h:1.12 src/tests/lib/libc/sys/t_ptrace_wait.h:1.13
--- src/tests/lib/libc/sys/t_ptrace_wait.h:1.12	Mon Aug 13 21:49:37 2018
+++ src/tests/lib/libc/sys/t_ptrace_wait.h	Sat Feb  9 23:10:42 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_ptrace_wait.h,v 1.12 2018/08/13 21:49:37 kamil Exp $	*/
+/*	$NetBSD: t_ptrace_wait.h,v 1.13 2019/02/09 23:10:42 kamil Exp $	*/
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -503,6 +503,16 @@ check_happy(unsigned n)
 	}
 }
 
+static void *
+infinite_thread(void *arg __unused)
+{
+
+        while (true)
+                continue;
+
+        __unreachable();
+}
+
 #if defined(HAVE_DBREGS)
 static bool __used
 can_we_set_dbregs(void)

Reply via email to