about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-02-06 12:30:23 -0800
committerRoland McGrath <roland@hack.frob.com>2015-02-06 12:30:23 -0800
commit9e7265f4e58e563a1b0c9564f9eb5014ab333c37 (patch)
treeb4cd7716bf678c55d909d82282e17857b3586327
parent62ad2abcd6fbcb90cc9f0eea7cf011b83f5e95e2 (diff)
downloadglibc-9e7265f4e58e563a1b0c9564f9eb5014ab333c37.tar.gz
glibc-9e7265f4e58e563a1b0c9564f9eb5014ab333c37.tar.xz
glibc-9e7265f4e58e563a1b0c9564f9eb5014ab333c37.zip
NPTL: Build tests using clone directly only for Linux.
-rw-r--r--ChangeLog16
-rw-r--r--nptl/Makefile9
-rw-r--r--sysdeps/unix/sysv/linux/Makefile7
-rw-r--r--sysdeps/unix/sysv/linux/tst-align-clone.c (renamed from nptl/tst-align2.c)0
-rw-r--r--sysdeps/unix/sysv/linux/tst-getpid1.c (renamed from nptl/tst-getpid1.c)0
-rw-r--r--sysdeps/unix/sysv/linux/tst-getpid2.c (renamed from nptl/tst-getpid2.c)0
6 files changed, 24 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index bcd964b708..f8541af7df 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,21 @@
 2015-02-06  Roland McGrath  <roland@hack.frob.com>
 
+	* nptl/tst-align2.c: Moved ...
+	* sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
+	* nptl/Makefile (tests): Remove tst-align2.
+	* sysdeps/unix/sysv/linux/Makefile
+	[$(subdir) = nptl] (tests): Add tst-align-clone.
+	* nptl/tst-getpid1.c: Moved ...
+	* sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
+	* nptl/tst-getpid2.c: Moved ...
+	* sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
+	* nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
+	* sysdeps/unix/sysv/linux/Makefile
+	[$(subdir) = nptl] (tests): ... here.
+	* nptl/Makefile (tst-getpid2-ENV): Move variable ...
+	* sysdeps/unix/sysv/linux/Makefile
+	[$(subdir) = nptl] (tst-getpid2-ENV): ... here.
+
 	* nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
 	Drop trailing \n from perror argument.  Use return rather than exit.
 
diff --git a/nptl/Makefile b/nptl/Makefile
index 43d85103f8..6ae76bb8d1 100644
--- a/nptl/Makefile
+++ b/nptl/Makefile
@@ -229,7 +229,7 @@ tests = tst-typesizes \
 	tst-sem1 tst-sem2 tst-sem3 tst-sem4 tst-sem5 tst-sem6 tst-sem7 \
 	tst-sem8 tst-sem9 tst-sem10 tst-sem11 tst-sem12 tst-sem13 tst-sem14 \
 	tst-barrier1 tst-barrier2 tst-barrier3 tst-barrier4 \
-	tst-align tst-align2 tst-align3 \
+	tst-align tst-align3 \
 	tst-basic1 tst-basic2 tst-basic3 tst-basic4 tst-basic5 tst-basic6 \
 	tst-basic7 \
 	tst-kill1 tst-kill2 tst-kill3 tst-kill4 tst-kill5 tst-kill6 \
@@ -269,7 +269,7 @@ tests = tst-typesizes \
 	tst-backtrace1 \
 	tst-abstime \
 	tst-vfork1 tst-vfork2 tst-vfork1x tst-vfork2x \
-	tst-getpid1 tst-getpid2 tst-getpid3 \
+	tst-getpid3 \
 	tst-setuid3 \
 	tst-initializers1 $(addprefix tst-initializers1-,c89 gnu89 c99 gnu99) \
 	tst-bad-schedattr
@@ -463,11 +463,6 @@ tst-cancel7-ARGS = --command "exec $(host-test-program-cmd)"
 tst-cancelx7-ARGS = $(tst-cancel7-ARGS)
 tst-umask1-ARGS = $(objpfx)tst-umask1.temp
 
-# In this test, we create a CLONE_VM "thread" that shares TLS storage
-# with the original thread. Both threads then race in ld.so with lazy PLT
-# resolution. Avoid this race by disabling lazy binding. BZ #11214.
-tst-getpid2-ENV = LD_BIND_NOW=1
-
 $(objpfx)tst-atfork2: $(libdl) $(shared-thread-library)
 LDFLAGS-tst-atfork2 = -rdynamic
 tst-atfork2-ENV = MALLOC_TRACE=$(objpfx)tst-atfork2.mtrace
diff --git a/sysdeps/unix/sysv/linux/Makefile b/sysdeps/unix/sysv/linux/Makefile
index 9f3718b663..c26a12fa11 100644
--- a/sysdeps/unix/sysv/linux/Makefile
+++ b/sysdeps/unix/sysv/linux/Makefile
@@ -196,5 +196,10 @@ CFLAGS-gai.c += -DNEED_NETLINK
 endif
 
 ifeq ($(subdir),nptl)
-tests += tst-setgetname
+tests += tst-setgetname tst-align-clone tst-getpid1 tst-getpid2
+
+# In this test, we create a CLONE_VM "thread" that shares TLS storage
+# with the original thread. Both threads then race in ld.so with lazy PLT
+# resolution. Avoid this race by disabling lazy binding. BZ #11214.
+tst-getpid2-ENV = LD_BIND_NOW=1
 endif
diff --git a/nptl/tst-align2.c b/sysdeps/unix/sysv/linux/tst-align-clone.c
index 626f605d21..626f605d21 100644
--- a/nptl/tst-align2.c
+++ b/sysdeps/unix/sysv/linux/tst-align-clone.c
diff --git a/nptl/tst-getpid1.c b/sysdeps/unix/sysv/linux/tst-getpid1.c
index 253ebf2e15..253ebf2e15 100644
--- a/nptl/tst-getpid1.c
+++ b/sysdeps/unix/sysv/linux/tst-getpid1.c
diff --git a/nptl/tst-getpid2.c b/sysdeps/unix/sysv/linux/tst-getpid2.c
index fc98cb60db..fc98cb60db 100644
--- a/nptl/tst-getpid2.c
+++ b/sysdeps/unix/sysv/linux/tst-getpid2.c