From: Andreas Schwab Date: Mon, 8 May 2017 15:49:59 +0000 (+0200) Subject: Use test-driver in ntpl/tst-fork1.c X-Git-Tag: glibc-2.26~527 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=faa9066c4b4a758bb97a8a38173630d821bb6db5;p=thirdparty%2Fglibc.git Use test-driver in ntpl/tst-fork1.c --- diff --git a/ChangeLog b/ChangeLog index ca563394c8e..0528b5a02f1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-05-10 Andreas Schwab + + * nptl/tst-fork1.c: Include . + (main): Rename to do_test and make static. + 2017-05-10 Joseph Myers * string/rawmemchr.c: Include . diff --git a/nptl/tst-fork1.c b/nptl/tst-fork1.c index 9bf1132c7b1..86c0f555acf 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