about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2017-05-18 18:08:06 +0200
committerAndreas Schwab <schwab@suse.de>2017-05-31 09:45:38 +0200
commitcfa9bb61cd09c40def96f042a3123ec0093c4ad0 (patch)
treef440f749958d445c5d90675482c04df635b1c4c8
parent4158ba082c641f407009363b186b4c85f8a01a35 (diff)
downloadglibc-cfa9bb61cd09c40def96f042a3123ec0093c4ad0.tar.gz
glibc-cfa9bb61cd09c40def96f042a3123ec0093c4ad0.tar.xz
glibc-cfa9bb61cd09c40def96f042a3123ec0093c4ad0.zip
Use test-driver in nptl/tst-fork3.c
-rw-r--r--ChangeLog5
-rw-r--r--nptl/tst-fork3.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 859f582c3a..1dc6d5c8e3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-05-31  Andreas Schwab  <schwab@suse.de>
+
+	* nptl/tst-fork3.c: Include <support/test-driver.c>.
+	(main): Rename to do_test and make static.
+
 2017-05-31  Siddhesh Poyarekar  <siddhesh@sourceware.org>
 
 	* csu/libc-start.c [!ARCH_INIT_CPU_FEATURES]: Define
diff --git a/nptl/tst-fork3.c b/nptl/tst-fork3.c
index 8fee264436..33d93f2a04 100644
--- a/nptl/tst-fork3.c
+++ b/nptl/tst-fork3.c
@@ -87,8 +87,8 @@ tf1 (void *arg)
 }
 
 
-int
-main (void)
+static int
+do_test (void)
 {
   initial_pid = getpid ();
 
@@ -104,3 +104,5 @@ main (void)
 
   return 1;
 }
+
+#include <support/test-driver.c>