From fb45e0aca9d0bf43d3086fc28e9e5bc66fe6500b Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 6 Jul 2023 19:24:33 +0200 Subject: Test case for bug 30619 --- sysdeps/pthread/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sysdeps/pthread/Makefile') diff --git a/sysdeps/pthread/Makefile b/sysdeps/pthread/Makefile index 32cf4eb119..38b0a66d3c 100644 --- a/sysdeps/pthread/Makefile +++ b/sysdeps/pthread/Makefile @@ -335,6 +335,7 @@ tests += \ tst-atfork3 \ tst-atfork4 \ tst-create1 \ + tst-thread-dlopen-fork \ tst-fini1 \ tst-pt-tls4 \ # tests @@ -351,6 +352,7 @@ modules-names += \ tst-atfork3mod \ tst-atfork4mod \ tst-create1mod \ + tst-thread-dlopen-fork-mod \ tst-fini1mod \ tst-tls4moda \ tst-tls4modb \ @@ -525,4 +527,11 @@ LDFLAGS-tst-create1 = -Wl,-export-dynamic $(objpfx)tst-create1: $(shared-thread-library) $(objpfx)tst-create1.out: $(objpfx)tst-create1mod.so +# Create multiple shared objects to be used by the test. +tst-thread-dlopen-fork.sos := \ + $(patsubst %,$(objpfx)tst-thread-dlopen-fork-mod-%.so,$(shell seq 0 16)) +$(tst-thread-dlopen-fork.sos): $(objpfx)tst-thread-dlopen-fork-mod.so + cp -f $< $@ +$(objpfx)tst-thread-dlopen-fork.out: $(tst-thread-dlopen-fork.sos) + endif -- cgit 1.4.1