summaryrefslogtreecommitdiff
path: root/test/nptl/tst-tls3.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2024-03-20 16:06:32 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2024-03-20 16:08:37 +0100
commitdea703a723f7c3a98560ab391af9ec11a8fe79f8 (patch)
tree599b3ec6211046cde4b50bfb3a03d9b2b52deff6 /test/nptl/tst-tls3.c
parentbb54f5f4e7afee2f2abdc4b9fe9cc45dc91288f3 (diff)
enable nptl/tst-tls3
Diffstat (limited to 'test/nptl/tst-tls3.c')
-rw-r--r--test/nptl/tst-tls3.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/test/nptl/tst-tls3.c b/test/nptl/tst-tls3.c
index 5f54948..3765ba2 100644
--- a/test/nptl/tst-tls3.c
+++ b/test/nptl/tst-tls3.c
@@ -25,6 +25,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+
#include "../test-skeleton.h"
#define THE_SIG SIGUSR1
@@ -68,17 +69,11 @@ pthread_barrier_t b;
#define TOTAL_SIGS 1000
int nsigs;
+#define TCB_ALIGNMENT 16
int
do_test (void)
{
-#if !HAVE___THREAD
-
- puts ("No __thread support in compiler, test skipped.");
-
- return 0;
-#else
-
if ((uintptr_t) pthread_self () & (TCB_ALIGNMENT - 1))
{
puts ("initial thread's struct pthread not aligned enough");
@@ -214,7 +209,6 @@ do_test (void)
}
return 0;
-#endif
}