pthread_exit had no test, although scePthreadExit it forwards to is covered.
Check the FreeBSD 11.4 behaviour of _pthread_exit
(lib/libthr/thread/thr_exit.c lines 204-290): the value passed to
pthread_exit is returned by pthread_join (also NULL), code after the call
never runs, the cleanup handlers of the thread run once and before the
thread-specific data destructors, and a key destructor runs once with the
stored value.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>