[LTP] [PATCH] openposix: Remove pthread_detach_1-2
Jan Stancek
jstancek@redhat.com
Mon Jun 15 18:09:04 CEST 2026
On Mon, Jun 15, 2026 at 4:25 PM Martin Doucha <mdoucha@suse.cz> wrote:
>
> The POSIX specification of pthread_join() has changed in recent years and
> pthread_detach_1-2 test scenario is no longer valid. The POSIX standard
> issue 8 says that the behavior of pthread_join() called on a thread ID
> which does not refer to a joinable thread is undefined.
>
> https://pubs.opengroup.org/onlinepubs/9799919799/functions/pthread_join.html
>
> The test creates a thread, detaches it using pthread_detach() and then
> calls pthread_join(), expecting an error. As stated above, the expected
> behavior is now undefined. Remove the test.
>
> Signed-off-by: Martin Doucha <mdoucha@suse.cz>
Acked-by: Jan Stancek <jstancek@redhat.com>
More information about the ltp
mailing list