From: Paul Floyd Date: Thu, 29 Dec 2022 21:08:14 +0000 (+0100) Subject: Add a variation of the Helgrind tls_threads test X-Git-Tag: VALGRIND_3_21_0~250 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7c93d1f71f36e0b67770125b48a2583662af152;p=thirdparty%2Fvalgrind.git Add a variation of the Helgrind tls_threads test This version uses GLIBC_TUNABLES in the environment so it checks that glibc.pthread.stack_cache_size can be detected and modified. --- diff --git a/helgrind/tests/Makefile.am b/helgrind/tests/Makefile.am index 2157f7cd38..32f926b74f 100755 --- a/helgrind/tests/Makefile.am +++ b/helgrind/tests/Makefile.am @@ -135,6 +135,7 @@ EXTRA_DIST = \ tc24_nonzero_sem.stderr.exp \ tls_threads.vgtest tls_threads.stdout.exp \ tls_threads.stderr.exp \ + tls_threads2.vgtest tls_threads2.stderr.exp \ trylock.vgtest trylock.stderr.exp # Wrapper headers used by some check programs. diff --git a/helgrind/tests/tls_threads2.stderr.exp b/helgrind/tests/tls_threads2.stderr.exp new file mode 100644 index 0000000000..be3b8904e7 --- /dev/null +++ b/helgrind/tests/tls_threads2.stderr.exp @@ -0,0 +1,2 @@ +starting join in main +finished join in main diff --git a/helgrind/tests/tls_threads2.vgtest b/helgrind/tests/tls_threads2.vgtest new file mode 100644 index 0000000000..f8f0ad15be --- /dev/null +++ b/helgrind/tests/tls_threads2.vgtest @@ -0,0 +1,4 @@ +prereq: ../../tests/os_test linux +env: GLIBC_TUNABLES=glibc.pthread.mutex_spin_count=4:glibc.pthread.stack_cache_size=41943040:glibc.pthread.rseq=1 +prog: tls_threads +vgopts: -q --sim-hints=no-nptl-pthread-stackcache