Workaround bar_bad testcase hanging with newer glibc in helgrind/drd tests.
commit5f37e4dcde228872180c0cf28e6bee162fb3db08
authorMark Wielaard <mark@klomp.org>
Mon, 19 Sep 2016 14:16:35 +0000 (19 14:16 +0000)
committerMark Wielaard <mark@klomp.org>
Mon, 19 Sep 2016 14:16:35 +0000 (19 14:16 +0000)
tree688ac805bb9c6487446d332ec293808cd1e8888c
parentc5556b2094d8b0016e11625e327b25f5179331e3
Workaround bar_bad testcase hanging with newer glibc in helgrind/drd tests.

This is a workaround for bug #358213 helgrind/drd pthread_barrier tests
hangs with new glibc pthread barrier implementation. This makes sure that
the tests don't hang anymore. It does this by creating new threads that
sleep and kill the other threads after some time. But this introduces
some non-determinism that might cause the tests to occassionally fail
(both against old and new glibc implementations).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15962
drd/tests/Makefile.am
drd/tests/bar_bad.stderr.exp
drd/tests/bar_bad.stderr.exp-nohang [copied from drd/tests/bar_bad.stderr.exp with 79% similarity]
drd/tests/bar_bad_xml.stderr.exp
drd/tests/bar_bad_xml.stderr.exp-nohang [copied from drd/tests/bar_bad_xml.stderr.exp with 82% similarity]
helgrind/tests/Makefile.am
helgrind/tests/bar_bad.c
helgrind/tests/bar_bad.stderr.exp