diff options
Diffstat (limited to 'c/src/tests/psxtests/psx05/init.c')
-rw-r--r-- | c/src/tests/psxtests/psx05/init.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/c/src/tests/psxtests/psx05/init.c b/c/src/tests/psxtests/psx05/init.c index 08b059310f..e89286fac8 100644 --- a/c/src/tests/psxtests/psx05/init.c +++ b/c/src/tests/psxtests/psx05/init.c @@ -269,6 +269,14 @@ void *POSIX_Init( status = pthread_mutexattr_init( &attr ); assert( !status ); + /* + * Set the protocol to priority ceiling so the owner check happens + * and the EPERM test (later) will work. + */ + + status = pthread_mutexattr_setprotocol( &attr, PTHREAD_PRIO_INHERIT ); + assert( !status ); + puts( "Init: pthread_mutex_init - SUCCESSFUL" ); status = pthread_mutex_init( &Mutex_id, &attr ); if ( status ) |