summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxkey03
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-07-31 16:16:17 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-07-31 16:16:17 +0000
commit76e9a52f29c61a2d96e7a45394019d172a408f49 (patch)
tree9692c9aff595048b610c9a1a288ae92e71e0f920 /testsuites/psxtests/psxkey03
parent2011-07-31 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff)
downloadrtems-76e9a52f29c61a2d96e7a45394019d172a408f49.tar.bz2
2011-07-31 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1867/cpukit * Makefile.am, configure.ac, psx12/task.c, psxkey03/init.c, psxrwlock01/test.c: Correct implementation of pthread_exit() and pthread_join() to support the case where a thread is joinable but calls pthread_exit() before a thread has attempted to join.
Diffstat (limited to 'testsuites/psxtests/psxkey03')
-rw-r--r--testsuites/psxtests/psxkey03/init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxkey03/init.c b/testsuites/psxtests/psxkey03/init.c
index 139767e4a3..cd5a0fd0f9 100644
--- a/testsuites/psxtests/psxkey03/init.c
+++ b/testsuites/psxtests/psxkey03/init.c
@@ -32,6 +32,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 );