about summary refs log tree commit diff
path: root/nptl/tst-tls3.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-09-02 00:33:28 +0000
committerUlrich Drepper <drepper@redhat.com>2003-09-02 00:33:28 +0000
commitc874a32e887dd78c1480dcb32052f708dcd5c1e8 (patch)
treeeb7b699b55229d28ae4c15d60981dd0cfbe0c013 /nptl/tst-tls3.c
parente3a88560b94668a5b4de5ca7161f3aea5f02e496 (diff)
downloadglibc-c874a32e887dd78c1480dcb32052f708dcd5c1e8.tar.gz
glibc-c874a32e887dd78c1480dcb32052f708dcd5c1e8.tar.xz
glibc-c874a32e887dd78c1480dcb32052f708dcd5c1e8.zip
Update.
2003-09-01  Jakub Jelinek  <jakub@redhat.com>

	* Makefile (tests): Add tst-tls1.
	(module-names): Add tst-tls1mod{,a,b,c,d,e,f}.
	($(objpfx)tst-tls1mod{,a,b,c,d,e,f}.so-no-z-defs): Set to yes.
	($(objpfx)tst-tls1): New.
	($(objpfx)tst-tls2.out): Likewise.
	(tests): Depend on $(objpfx)tst-tls2.out.
	* tst-tls1.c: New test.
	* tst-tls1.h: New.
	* tst-tls1mod.c: New.
	* tst-tls1moda.c: New.
	* tst-tls1modb.c: New.
	* tst-tls1modc.c: New.
	* tst-tls1modd.c: New.
	* tst-tls1mode.c: New.
	* tst-tls1modf.c: New.
	* tst-tls2.sh: New test.
Diffstat (limited to 'nptl/tst-tls3.c')
-rw-r--r--nptl/tst-tls3.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/nptl/tst-tls3.c b/nptl/tst-tls3.c
index 4e7ca8e231..20ee3e30c2 100644
--- a/nptl/tst-tls3.c
+++ b/nptl/tst-tls3.c
@@ -22,10 +22,11 @@
 #include <pthread.h>
 #include <signal.h>
 #include <semaphore.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
-
+#include <pthreaddef.h>
 
 #define THE_SIG SIGUSR1
 
@@ -79,6 +80,12 @@ do_test (void)
   return 0;
 #else
 
+  if ((uintptr_t) pthread_self () & (TCB_ALIGNMENT - 1))
+    {
+      puts ("initial thread's struct pthread not aligned enough");
+      exit (1);
+    }
+
   if (pthread_barrier_init (&b, NULL, N + 1) != 0)
     {
       puts ("barrier_init failed");