about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2017-05-08 17:49:59 +0200
committerAndreas Schwab <schwab@suse.de>2017-05-10 09:38:18 +0200
commitfaa9066c4b4a758bb97a8a38173630d821bb6db5 (patch)
treebab418d3d648ccf3ff93b9145a5ebe0b5d08928a
parent8fa11673d6b0feb3804eba6243e4979087e008a8 (diff)
downloadglibc-faa9066c4b4a758bb97a8a38173630d821bb6db5.tar.gz
glibc-faa9066c4b4a758bb97a8a38173630d821bb6db5.tar.xz
glibc-faa9066c4b4a758bb97a8a38173630d821bb6db5.zip
Use test-driver in ntpl/tst-fork1.c
-rw-r--r--ChangeLog5
-rw-r--r--nptl/tst-fork1.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ca563394c8..0528b5a02f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-05-10  Andreas Schwab  <schwab@suse.de>
+
+	* nptl/tst-fork1.c: Include <support/test-driver.c>.
+	(main): Rename to do_test and make static.
+
 2017-05-10  Joseph Myers  <joseph@codesourcery.com>
 
 	* string/rawmemchr.c: Include <libc-diag.h>.
diff --git a/nptl/tst-fork1.c b/nptl/tst-fork1.c
index 9bf1132c7b..86c0f555ac 100644
--- a/nptl/tst-fork1.c
+++ b/nptl/tst-fork1.c
@@ -64,8 +64,8 @@ thread_function (void * arg)
 #define N 5
 static const int t[N] = { 7, 6, 5, 4, 3 };
 
-int
-main (void)
+static int
+do_test (void)
 {
   pthread_t th[N];
   int i;
@@ -117,3 +117,5 @@ main (void)
 
   return result;
 }
+
+#include <support/test-driver.c>