Skip to content

Commit

Permalink
Use test-driver in ntpl/tst-fork1.c
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-schwab committed May 10, 2017
1 parent 8fa1167 commit faa9066
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2017-05-10 Andreas Schwab <[email protected]>

* nptl/tst-fork1.c: Include <support/test-driver.c>.
(main): Rename to do_test and make static.

2017-05-10 Joseph Myers <[email protected]>

* string/rawmemchr.c: Include <libc-diag.h>.
Expand Down
6 changes: 4 additions & 2 deletions nptl/tst-fork1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -117,3 +117,5 @@ main (void)

return result;
}

#include <support/test-driver.c>

0 comments on commit faa9066

Please sign in to comment.