From dea703a723f7c3a98560ab391af9ec11a8fe79f8 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 20 Mar 2024 16:06:32 +0100 Subject: enable nptl/tst-tls3 --- test/nptl/tst-tls3.c | 10 ++-------- test/nptl/tst-tls3mod.c | 6 ++---- 2 files changed, 4 insertions(+), 12 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 #include #include + #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 } diff --git a/test/nptl/tst-tls3mod.c b/test/nptl/tst-tls3mod.c index c2cefdf..4b30500 100644 --- a/test/nptl/tst-tls3mod.c +++ b/test/nptl/tst-tls3mod.c @@ -24,10 +24,10 @@ #include #include -#if HAVE___THREAD - static pthread_barrier_t* b = NULL; +#define TCB_ALIGNMENT 16 + #define TOTAL_SIGS 1000 static int* nsigs = NULL; @@ -99,5 +99,3 @@ tf (void *arg) return NULL; } - -#endif -- cgit v1.2.3