Re: [PATCH] kill all threadapply processes at end of test

Simon Marchi via Gdb-patches
2021-06-01T16:08:34Z

> I have added a commit message describing the issue with the test and
> how the patch fixes the issue.
>
> Please let me know if the patch is acceptable for committing to GDB
> mainline. Thanks.
>
> Carl
>
> ---------------------------------------------------------------------
> 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-05-22 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.

Thanks, this is OK. Do you have push access or know somebody that could
push it for you? Otherwise, I can do it.

Simon