Use test-driver in ntpl/tst-fork1.c
This commit is contained in:
parent
8fa11673d6
commit
faa9066c4b
@ -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>
|
2017-05-10 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
* string/rawmemchr.c: Include <libc-diag.h>.
|
* string/rawmemchr.c: Include <libc-diag.h>.
|
||||||
|
@ -64,8 +64,8 @@ thread_function (void * arg)
|
|||||||
#define N 5
|
#define N 5
|
||||||
static const int t[N] = { 7, 6, 5, 4, 3 };
|
static const int t[N] = { 7, 6, 5, 4, 3 };
|
||||||
|
|
||||||
int
|
static int
|
||||||
main (void)
|
do_test (void)
|
||||||
{
|
{
|
||||||
pthread_t th[N];
|
pthread_t th[N];
|
||||||
int i;
|
int i;
|
||||||
@ -117,3 +117,5 @@ main (void)
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include <support/test-driver.c>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user