]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/ChangeLog
Fix threadapply test
authorCarl Love <cel@us.ibm.com>
Fri, 21 May 2021 16:29:26 +0000 (11:29 -0500)
committerCarl Love <cel@us.ibm.com>
Wed, 2 Jun 2021 15:29:36 +0000 (10:29 -0500)
commit170960e8e1413c354a76e3fe83c789407c3dc101
tree4b7d288dd4454dc44a1e783f2a7f26f906d4c88e
parent8f467114435286e4f78b16fc1f5864acf6488fc0
Fix threadapply test

The current test case leaves detached processes running at the end of
the test.  This patch changes the test to use a barrier wait to ensure all
processes exit cleanly at the end of the tests.

gdb/testsuite/ChangeLog:

2021-06-02  Carl Love  <cel@us.ibm.com>

* gdb.threads/threadapply.c: Add global mybarrier.
(main): Add pthread_barrier_init.
(thread_function): Replace while loop with myp increment and
pthread_barrier_wait.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/threadapply.c