aboutsummaryrefslogtreecommitdiff
path: root/nptl/tst-eintr2.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/tst-eintr2.c')
-rw-r--r--nptl/tst-eintr2.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/nptl/tst-eintr2.c b/nptl/tst-eintr2.c
index 7f50f4b..0ef6d30 100644
--- a/nptl/tst-eintr2.c
+++ b/nptl/tst-eintr2.c
@@ -24,6 +24,11 @@
#include <string.h>
#include <sys/time.h>
+static int do_test (void);
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
+
#include "eintr.c"
@@ -103,6 +108,7 @@ do_test (void)
exit (1);
}
+ delayed_exit (3);
/* This call must never return. */
e = pthread_mutex_lock (&m1);
printf ("main: mutex_lock returned: %s\n",
@@ -110,8 +116,3 @@ do_test (void)
return 1;
}
-
-#define EXPECTED_SIGNAL SIGALRM
-#define TIMEOUT 3
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"