diff options
Diffstat (limited to 'testsuites/psxtests/psxkey03/init.c')
-rw-r--r-- | testsuites/psxtests/psxkey03/init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxkey03/init.c b/testsuites/psxtests/psxkey03/init.c index d551a444c2..12088e4e98 100644 --- a/testsuites/psxtests/psxkey03/init.c +++ b/testsuites/psxtests/psxkey03/init.c @@ -28,6 +28,11 @@ void *Test_Thread( { int sc; + /* + * Detach ourselves so we don't wait for a join that won't happen. + */ + pthread_detach( pthread_self() ); + puts( "Test_Thread - pthread_setspecific - OK" ); sc = pthread_setspecific( Key, key_value ); rtems_test_assert( !sc ); |