From ce5b73a7c3d8caefc72ac3b95490861e3ee13520 Mon Sep 17 00:00:00 2001 From: Mike Crowe Date: Wed, 19 Jun 2019 18:07:58 -0300 Subject: nptl: Convert various tests to use libsupport * nptl/eintr.c: Use libsupport. * nptl/tst-eintr1.c: Likewise. * nptl/tst-eintr2.c: Likewise. * nptl/tst-eintr3.c: Likewise. * nptl/tst-eintr4.c: Likewise. * nptl/tst-eintr5.c: Likewise. * nptl/tst-mutex-errorcheck.c: Likewise. * nptl/tst-mutex5.c: Likewise. --- nptl/tst-eintr4.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'nptl/tst-eintr4.c') diff --git a/nptl/tst-eintr4.c b/nptl/tst-eintr4.c index 2d9b299705..1f4b711a3c 100644 --- a/nptl/tst-eintr4.c +++ b/nptl/tst-eintr4.c @@ -22,11 +22,8 @@ #include #include #include - -static int do_test (void); - -#define TEST_FUNCTION do_test () -#include "../test-skeleton.c" +#include +#include #include "eintr.c" @@ -39,11 +36,7 @@ do_test (void) setup_eintr (SIGUSR1, &self); pthread_barrier_t b; - if (pthread_barrier_init (&b, NULL, 2) != 0) - { - puts ("barrier_init failed"); - exit (1); - } + xpthread_barrier_init (&b, NULL, 2); delayed_exit (1); /* This call must never return. */ @@ -51,3 +44,5 @@ do_test (void) puts ("error: pthread_barrier_wait returned"); return 1; } + +#include -- cgit v1.2.3