aboutsummaryrefslogtreecommitdiff
path: root/nptl/tst-cleanup3.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/tst-cleanup3.c')
-rw-r--r--nptl/tst-cleanup3.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/nptl/tst-cleanup3.c b/nptl/tst-cleanup3.c
index 3c34a1e..c4f51e3 100644
--- a/nptl/tst-cleanup3.c
+++ b/nptl/tst-cleanup3.c
@@ -22,6 +22,11 @@
#include <unistd.h>
+static int do_test (void);
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
+
static int global;
@@ -65,7 +70,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);
}
@@ -91,7 +96,3 @@ do_test (void)
return 0;
}
-
-
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"