]> sourceware.org Git - glibc.git/commitdiff
pthread: Move most once tests from nptl to sysdeps/pthread
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 9 Feb 2020 19:50:21 +0000 (19:50 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 9 Feb 2020 19:50:21 +0000 (19:50 +0000)
So they can be checked with htl too.

nptl/Makefile
sysdeps/pthread/Makefile
sysdeps/pthread/tst-once1.c [moved from nptl/tst-once1.c with 100% similarity]
sysdeps/pthread/tst-once2.c [moved from nptl/tst-once2.c with 100% similarity]
sysdeps/pthread/tst-once3.c [moved from nptl/tst-once3.c with 100% similarity]
sysdeps/pthread/tst-once4.c [moved from nptl/tst-once4.c with 100% similarity]
sysdeps/pthread/tst-oncex3.c [moved from nptl/tst-oncex3.c with 100% similarity]
sysdeps/pthread/tst-oncex4.c [moved from nptl/tst-oncex4.c with 100% similarity]

index 8fadd1d02584acb981b53a6c4601657ecbc225f1..bf21413c26ec3850fa233314c2bc66e210ac30c9 100644 (file)
@@ -248,7 +248,7 @@ tests = tst-attr2 tst-attr3 tst-default-attr \
        tst-rwlock4 tst-rwlock5 tst-rwlock6 tst-rwlock7 tst-rwlock8 \
        tst-rwlock9 tst-rwlock10 tst-rwlock11 tst-rwlock12 tst-rwlock13 \
        tst-rwlock14 tst-rwlock15 tst-rwlock16 tst-rwlock17 tst-rwlock18 \
-       tst-once1 tst-once2 tst-once3 tst-once4 tst-once5 \
+       tst-once5 \
        tst-key1 tst-key2 tst-key3 tst-key4 \
        tst-sem1 tst-sem2 tst-sem3 tst-sem4 tst-sem5 tst-sem6 tst-sem7 \
        tst-sem8 tst-sem9 tst-sem10 tst-sem14 \
@@ -375,8 +375,7 @@ tests += tst-cancelx2 tst-cancelx3 tst-cancelx4 tst-cancelx5 \
         tst-cancelx6 tst-cancelx7 tst-cancelx8 tst-cancelx9 tst-cancelx10 \
         tst-cancelx11 tst-cancelx12 tst-cancelx13 tst-cancelx14 tst-cancelx15 \
         tst-cancelx16 tst-cancelx17 tst-cancelx18 tst-cancelx20 tst-cancelx21 \
-        tst-cleanupx0 tst-cleanupx1 tst-cleanupx2 tst-cleanupx3 tst-cleanupx4 \
-        tst-oncex3 tst-oncex4
+        tst-cleanupx0 tst-cleanupx1 tst-cleanupx2 tst-cleanupx3 tst-cleanupx4
 ifeq ($(build-shared),yes)
 tests += tst-atfork2 tst-tls4 tst-_res1 tst-fini1 tst-compat-forwarder \
         tst-audit-threads
@@ -516,8 +515,6 @@ CFLAGS-tst-cleanupx2.c += -fexceptions
 CFLAGS-tst-cleanupx3.c += -fexceptions
 CFLAGS-tst-cleanupx4.c += -fexceptions
 CFLAGS-tst-cleanupx4aux.c += -fexceptions
-CFLAGS-tst-oncex3.c += -fexceptions
-CFLAGS-tst-oncex4.c += -fexceptions
 CFLAGS-tst-align.c += $(stack-align-test-flags)
 CFLAGS-tst-align3.c += $(stack-align-test-flags)
 CFLAGS-tst-initializers1.c += -W -Wall -Werror
index 2c33c5c9049828853400d8e7bd126e79db974204..6b49e33bdc9380478d651c7281d87dc6c06f6291 100644 (file)
@@ -51,11 +51,17 @@ tests += tst-cnd-basic tst-mtx-trylock tst-cnd-broadcast \
         tst-cond23 tst-cond24 tst-cond25 \
         tst-cond-except \
         tst-mutex1 tst-mutex2 tst-mutex3 tst-mutex4 tst-mutex6 tst-mutex10 \
+        tst-once1 tst-once2 tst-once3 tst-once4 \
         tst-spin1 tst-spin2 tst-spin3 tst-spin4
 
+tests += tst-oncex3 tst-oncex4
+
 ifeq ($(build-shared),yes)
 tests-static += tst-cond8-static
 tests += tst-cond8-static
 endif
 
+CFLAGS-tst-oncex3.c += -fexceptions
+CFLAGS-tst-oncex4.c += -fexceptions
+
 endif
similarity index 100%
rename from nptl/tst-once1.c
rename to sysdeps/pthread/tst-once1.c
similarity index 100%
rename from nptl/tst-once2.c
rename to sysdeps/pthread/tst-once2.c
similarity index 100%
rename from nptl/tst-once3.c
rename to sysdeps/pthread/tst-once3.c
similarity index 100%
rename from nptl/tst-once4.c
rename to sysdeps/pthread/tst-once4.c
This page took 0.05515 seconds and 5 git commands to generate.