|
|
f21993 |
commit 28c30a6232aa9a54783c146590498a061fc0112a
|
|
|
f21993 |
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
|
|
|
f21993 |
Date: Sun Feb 9 19:50:21 2020 +0000
|
|
|
f21993 |
|
|
|
f21993 |
pthread: Move most once tests from nptl to sysdeps/pthread
|
|
|
f21993 |
|
|
|
f21993 |
So they can be checked with htl too.
|
|
|
f21993 |
|
|
|
f21993 |
# Conflicts:
|
|
|
f21993 |
# sysdeps/pthread/Makefile
|
|
|
f21993 |
# (Moved only the tests in this commit which subsequently
|
|
|
f21993 |
# needed for the pthread_once fix)
|
|
|
f21993 |
|
|
|
f21993 |
diff --git a/nptl/Makefile b/nptl/Makefile
|
|
|
f21993 |
index b14de3ffb330c10b..dcf3868869767015 100644
|
|
|
f21993 |
--- a/nptl/Makefile
|
|
|
f21993 |
+++ b/nptl/Makefile
|
|
|
f21993 |
@@ -260,7 +260,7 @@ tests = tst-attr1 tst-attr2 tst-attr3 tst-default-attr \
|
|
|
f21993 |
tst-rwlock4 tst-rwlock5 tst-rwlock6 tst-rwlock7 tst-rwlock8 \
|
|
|
f21993 |
tst-rwlock9 tst-rwlock10 tst-rwlock11 tst-rwlock12 tst-rwlock13 \
|
|
|
f21993 |
tst-rwlock14 tst-rwlock15 tst-rwlock16 tst-rwlock17 tst-rwlock18 \
|
|
|
f21993 |
- tst-once1 tst-once2 tst-once3 tst-once4 tst-once5 \
|
|
|
f21993 |
+ tst-once5 \
|
|
|
f21993 |
tst-key1 tst-key2 tst-key3 tst-key4 \
|
|
|
f21993 |
tst-sem1 tst-sem2 tst-sem3 tst-sem4 tst-sem5 tst-sem6 tst-sem7 \
|
|
|
f21993 |
tst-sem8 tst-sem9 tst-sem10 tst-sem14 \
|
|
|
f21993 |
@@ -384,8 +384,7 @@ tests += tst-cancelx2 tst-cancelx3 tst-cancelx4 tst-cancelx5 \
|
|
|
f21993 |
tst-cancelx6 tst-cancelx7 tst-cancelx8 tst-cancelx9 tst-cancelx10 \
|
|
|
f21993 |
tst-cancelx11 tst-cancelx12 tst-cancelx13 tst-cancelx14 tst-cancelx15 \
|
|
|
f21993 |
tst-cancelx16 tst-cancelx17 tst-cancelx18 tst-cancelx20 tst-cancelx21 \
|
|
|
f21993 |
- tst-cleanupx0 tst-cleanupx1 tst-cleanupx2 tst-cleanupx3 tst-cleanupx4 \
|
|
|
f21993 |
- tst-oncex3 tst-oncex4
|
|
|
f21993 |
+ tst-cleanupx0 tst-cleanupx1 tst-cleanupx2 tst-cleanupx3 tst-cleanupx4
|
|
|
f21993 |
ifeq ($(build-shared),yes)
|
|
|
f21993 |
tests += tst-atfork2 tst-tls4 tst-_res1 tst-fini1 tst-compat-forwarder \
|
|
|
f21993 |
tst-audit-threads
|
|
|
f21993 |
@@ -525,8 +524,6 @@ CFLAGS-tst-cleanupx2.c += -fexceptions
|
|
|
f21993 |
CFLAGS-tst-cleanupx3.c += -fexceptions
|
|
|
f21993 |
CFLAGS-tst-cleanupx4.c += -fexceptions
|
|
|
f21993 |
CFLAGS-tst-cleanupx4aux.c += -fexceptions
|
|
|
f21993 |
-CFLAGS-tst-oncex3.c += -fexceptions
|
|
|
f21993 |
-CFLAGS-tst-oncex4.c += -fexceptions
|
|
|
f21993 |
CFLAGS-tst-align.c += $(stack-align-test-flags)
|
|
|
f21993 |
CFLAGS-tst-align3.c += $(stack-align-test-flags)
|
|
|
f21993 |
CFLAGS-tst-initializers1.c += -W -Wall -Werror
|
|
|
f21993 |
diff --git a/sysdeps/pthread/Makefile b/sysdeps/pthread/Makefile
|
|
|
f21993 |
index 98a92f8d6bb119ba..14ef04247cb84ad3 100644
|
|
|
f21993 |
--- a/sysdeps/pthread/Makefile
|
|
|
f21993 |
+++ b/sysdeps/pthread/Makefile
|
|
|
f21993 |
@@ -33,11 +33,18 @@ endif
|
|
|
f21993 |
|
|
|
f21993 |
tst-create1mod.so-no-z-defs = yes
|
|
|
f21993 |
|
|
|
f21993 |
+tests += tst-once1 tst-once2 tst-once3 tst-once4
|
|
|
f21993 |
+
|
|
|
f21993 |
+tests += tst-oncex3 tst-oncex4
|
|
|
f21993 |
+
|
|
|
f21993 |
ifeq ($(build-shared),yes)
|
|
|
f21993 |
# Build all the modules even when not actually running test programs.
|
|
|
f21993 |
tests: $(test-modules)
|
|
|
f21993 |
endif
|
|
|
f21993 |
|
|
|
f21993 |
+CFLAGS-tst-oncex3.c += -fexceptions
|
|
|
f21993 |
+CFLAGS-tst-oncex4.c += -fexceptions
|
|
|
f21993 |
+
|
|
|
f21993 |
modules-names += tst-create1mod
|
|
|
f21993 |
test-modules = $(addprefix $(objpfx),$(addsuffix .so,$(modules-names)))
|
|
|
f21993 |
|
|
|
f21993 |
diff --git a/nptl/tst-once1.c b/sysdeps/pthread/tst-once1.c
|
|
|
f21993 |
similarity index 100%
|
|
|
f21993 |
rename from nptl/tst-once1.c
|
|
|
f21993 |
rename to sysdeps/pthread/tst-once1.c
|
|
|
f21993 |
diff --git a/nptl/tst-once2.c b/sysdeps/pthread/tst-once2.c
|
|
|
f21993 |
similarity index 100%
|
|
|
f21993 |
rename from nptl/tst-once2.c
|
|
|
f21993 |
rename to sysdeps/pthread/tst-once2.c
|
|
|
f21993 |
diff --git a/nptl/tst-once3.c b/sysdeps/pthread/tst-once3.c
|
|
|
f21993 |
similarity index 100%
|
|
|
f21993 |
rename from nptl/tst-once3.c
|
|
|
f21993 |
rename to sysdeps/pthread/tst-once3.c
|
|
|
f21993 |
diff --git a/nptl/tst-once4.c b/sysdeps/pthread/tst-once4.c
|
|
|
f21993 |
similarity index 100%
|
|
|
f21993 |
rename from nptl/tst-once4.c
|
|
|
f21993 |
rename to sysdeps/pthread/tst-once4.c
|
|
|
f21993 |
diff --git a/nptl/tst-oncex3.c b/sysdeps/pthread/tst-oncex3.c
|
|
|
f21993 |
similarity index 100%
|
|
|
f21993 |
rename from nptl/tst-oncex3.c
|
|
|
f21993 |
rename to sysdeps/pthread/tst-oncex3.c
|
|
|
f21993 |
diff --git a/nptl/tst-oncex4.c b/sysdeps/pthread/tst-oncex4.c
|
|
|
f21993 |
similarity index 100%
|
|
|
f21993 |
rename from nptl/tst-oncex4.c
|
|
|
f21993 |
rename to sysdeps/pthread/tst-oncex4.c
|