summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psx05/init.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-09-15 13:14:57 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-09-15 13:57:38 +0200
commit3b47ce73fa67efaeb1c92dc0129efa92f22d747c (patch)
treeadbb3251887d6e07a284bfe10a058c0f08b43e91 /testsuites/psxtests/psx05/init.c
parentlibio: Remove rtems_libio_t::driver (diff)
downloadrtems-3b47ce73fa67efaeb1c92dc0129efa92f22d747c.tar.bz2
posix: Allow PTHREAD_PROCESS_SHARED for mutexes
Close #3125.
Diffstat (limited to 'testsuites/psxtests/psx05/init.c')
-rw-r--r--testsuites/psxtests/psx05/init.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/testsuites/psxtests/psx05/init.c b/testsuites/psxtests/psx05/init.c
index cde8733bb0..e524d6f96f 100644
--- a/testsuites/psxtests/psx05/init.c
+++ b/testsuites/psxtests/psx05/init.c
@@ -429,10 +429,13 @@ void *POSIX_Init(
status = pthread_mutexattr_init( &attr );
rtems_test_assert( !status );
- puts( "Init: pthread_mutex_init - ENOSYS (process wide scope)" );
- attr.process_shared = PTHREAD_PROCESS_SHARED;
+ puts( "Init: pthread_mutex_init - process shared scope" );
+ status = pthread_mutexattr_setpshared( &attr, PTHREAD_PROCESS_SHARED );
+ rtems_test_assert( status == 0 );
status = pthread_mutex_init( &Mutex_id, &attr );
- rtems_test_assert( status == ENOSYS );
+ rtems_test_assert( status == 0 );
+ status = pthread_mutex_destroy( &Mutex_id );
+ rtems_test_assert( status == 0 );
puts( "Init: pthread_mutex_init - EINVAL (invalid scope)" );
attr.process_shared = -1;