diff options
Diffstat (limited to 'nptl/tst-cleanup1.c')
-rw-r--r-- | nptl/tst-cleanup1.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/nptl/tst-cleanup1.c b/nptl/tst-cleanup1.c index 82a568b072..f4da472ab1 100644 --- a/nptl/tst-cleanup1.c +++ b/nptl/tst-cleanup1.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2002-2016 Free Software Foundation, Inc. +/* Copyright (C) 2002-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@redhat.com>, 2002. @@ -22,6 +22,11 @@ #include <unistd.h> +static int do_test (void); + +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c" + static int global; @@ -67,7 +72,7 @@ do_test (void) if (pthread_create (&th, NULL, tf, NULL) != 0) { - write (2, "create failed\n", 14); + write_message ("create failed\n"); _exit (1); } @@ -93,7 +98,3 @@ do_test (void) return 0; } - - -#define TEST_FUNCTION do_test () -#include "../test-skeleton.c" |