]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add a variation of the Helgrind tls_threads test
authorPaul Floyd <pjfloyd@wanadoo.fr>
Thu, 29 Dec 2022 21:08:14 +0000 (22:08 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Thu, 29 Dec 2022 21:08:14 +0000 (22:08 +0100)
This version uses GLIBC_TUNABLES in the environment so it checks
that glibc.pthread.stack_cache_size can be detected and modified.

helgrind/tests/Makefile.am
helgrind/tests/tls_threads2.stderr.exp [new file with mode: 0644]
helgrind/tests/tls_threads2.vgtest [new file with mode: 0644]

index 2157f7cd381c9ebbb9bf59ddfb3c08856d31e260..32f926b74f83bdd63cbacd0649b4a5d4021c6648 100755 (executable)
@@ -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 (file)
index 0000000..be3b890
--- /dev/null
@@ -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 (file)
index 0000000..f8f0ad1
--- /dev/null
@@ -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