diff options
Diffstat (limited to 'nptl/tst-eintr3.c')
-rw-r--r-- | nptl/tst-eintr3.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/nptl/tst-eintr3.c b/nptl/tst-eintr3.c index d2c32b970a..f6b2ccf681 100644 --- a/nptl/tst-eintr3.c +++ b/nptl/tst-eintr3.c @@ -23,6 +23,11 @@ #include <stdlib.h> #include <string.h> +static int do_test (void); + +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c" + #include "eintr.c" @@ -56,16 +61,9 @@ do_test (void) exit (1); } + delayed_exit (1); /* This call must never return. */ - e = pthread_join (th, NULL); - - if (e == EINTR) - puts ("pthread_join returned with EINTR"); - - return 0; + xpthread_join (th); + puts ("error: pthread_join returned"); + return 1; } - -#define EXPECTED_SIGNAL SIGALRM -#define TIMEOUT 1 -#define TEST_FUNCTION do_test () -#include "../test-skeleton.c" |