pthread: Move some join tests from nptl to sysdeps/pthread

So they can be checked with htl too.
This commit is contained in:
Samuel Thibault 2020-02-10 01:21:46 +00:00
parent 1905cf47bc
commit c0463e8b79
14 changed files with 16 additions and 13 deletions

View File

@ -253,7 +253,7 @@ tests = tst-attr2 tst-attr3 tst-default-attr \
tst-align tst-align3 \
tst-kill1 tst-kill2 tst-kill3 tst-kill4 tst-kill5 tst-kill6 \
tst-raise1 \
tst-join1 tst-join2 tst-join3 tst-join4 tst-join5 tst-join6 tst-join7 \
tst-join2 tst-join3 \
tst-join8 tst-join9 tst-join10 tst-join11 tst-join12 tst-join13 \
tst-join14 \
tst-detach1 \
@ -385,7 +385,7 @@ modules-names = tst-atfork2mod tst-tls3mod tst-tls4moda tst-tls4modb \
tst-tls5mod tst-tls5moda tst-tls5modb tst-tls5modc \
tst-tls5modd tst-tls5mode tst-tls5modf tst-stack4mod \
tst-_res1mod1 tst-_res1mod2 tst-execstack-mod tst-fini1mod \
tst-join7mod tst-compat-forwarder-mod tst-audit-threads-mod1 \
tst-compat-forwarder-mod tst-audit-threads-mod1 \
tst-audit-threads-mod2
extra-test-objs += $(addsuffix .os,$(strip $(modules-names))) \
tst-cleanup4aux.o tst-cleanupx4aux.o
@ -579,11 +579,6 @@ $(objpfx)tst-tls6.out: tst-tls6.sh $(objpfx)tst-tls5 \
$(evaluate-test)
endif
$(objpfx)tst-join7: $(libdl) $(shared-thread-library)
$(objpfx)tst-join7.out: $(objpfx)tst-join7mod.so
$(objpfx)tst-join7mod.so: $(shared-thread-library)
LDFLAGS-tst-join7mod.so = -Wl,-soname,tst-join7mod.so
$(objpfx)tst-dlsym1: $(libdl) $(shared-thread-library)
$(objpfx)tst-fini1: $(shared-thread-library) $(objpfx)tst-fini1mod.so

View File

@ -17,4 +17,4 @@
<http://www.gnu.org/licenses/>. */
#define USE_PTHREAD_CLOCKJOIN_NP_REALTIME 1
#include <nptl/tst-join5.c>
#include <sysdeps/pthread/tst-join5.c>

View File

@ -18,4 +18,4 @@
#define USE_PTHREAD_CLOCKJOIN_NP_REALTIME 1
#define WAIT_IN_CHILD 1
#include <nptl/tst-join5.c>
#include <sysdeps/pthread/tst-join5.c>

View File

@ -17,4 +17,4 @@
<http://www.gnu.org/licenses/>. */
#define USE_PTHREAD_CLOCKJOIN_NP_MONOTONIC 1
#include <nptl/tst-join5.c>
#include <sysdeps/pthread/tst-join5.c>

View File

@ -18,4 +18,4 @@
#define USE_PTHREAD_CLOCKJOIN_NP_MONOTONIC 1
#define WAIT_IN_CHILD 1
#include <nptl/tst-join5.c>
#include <sysdeps/pthread/tst-join5.c>

View File

@ -17,4 +17,4 @@
<https://www.gnu.org/licenses/>. */
#define USE_PTHREAD_TIMEDJOIN_NP 1
#include <nptl/tst-join5.c>
#include <sysdeps/pthread/tst-join5.c>

View File

@ -18,4 +18,4 @@
#define USE_PTHREAD_TIMEDJOIN_NP 1
#define WAIT_IN_CHILD 1
#include <nptl/tst-join5.c>
#include <sysdeps/pthread/tst-join5.c>

View File

@ -51,6 +51,7 @@ tests += tst-cnd-basic tst-mtx-trylock tst-cnd-broadcast \
tst-cond14 tst-cond15 tst-cond16 tst-cond17 tst-cond18 tst-cond19 \
tst-cond23 tst-cond24 tst-cond25 \
tst-cond-except \
tst-join1 tst-join4 tst-join5 tst-join6 tst-join7 \
tst-key1 tst-key2 tst-key3 tst-key4 \
tst-mutex1 tst-mutex2 tst-mutex3 tst-mutex4 tst-mutex6 tst-mutex10 \
tst-once1 tst-once2 tst-once3 tst-once4 \
@ -62,6 +63,8 @@ tests += tst-cnd-basic tst-mtx-trylock tst-cnd-broadcast \
tests += tst-oncex3 tst-oncex4
modules-names += tst-join7mod
ifeq ($(build-shared),yes)
tests-static += tst-cond8-static
tests += tst-cond8-static
@ -70,4 +73,9 @@ endif
CFLAGS-tst-oncex3.c += -fexceptions
CFLAGS-tst-oncex4.c += -fexceptions
$(objpfx)tst-join7: $(libdl) $(shared-thread-library)
$(objpfx)tst-join7.out: $(objpfx)tst-join7mod.so
$(objpfx)tst-join7mod.so: $(shared-thread-library)
LDFLAGS-tst-join7mod.so = -Wl,-soname,tst-join7mod.so
endif