[PATCH v2] pthread: add PTHREAD_NULL

Collin Funk collin.funk1@gmail.com
Mon Nov 17 19:53:51 GMT 2025


Carlos O'Donell <carlos@redhat.com> writes:

> May you please add a test case for this new type?
>
> In particularly:
>
>  - Check that the main thread's self value is != PTHREAD_NULL.
>  - Create a thread with pthread_create and verify the self value is != PTHREAD_NULL.
>  - Use pthread_equal for the comparison.
>
> If you need help with any of these things, please just ask!

Happy to help as well.

The file posix/tst-glob-bz30635.c is a very small test that I added
recently. That might be helpful to look at to understand how the
support/test-driver.c interface works.

For the full change you can run:

    $ git diff bb1d27b94a3614c7e48212a04a0b28ec66fb4c49^ bb1d27b94a3614c7e48212a04a0b28ec66fb4c49

That will show you how to add the test to be run upon 'make check'.

Thanks!
Collin


More information about the Libc-alpha mailing list