diff options
Diffstat (limited to 'testsuites/psxtests/psx10/init.c')
-rw-r--r-- | testsuites/psxtests/psx10/init.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuites/psxtests/psx10/init.c b/testsuites/psxtests/psx10/init.c index 3990d03329..de04bcdd82 100644 --- a/testsuites/psxtests/psx10/init.c +++ b/testsuites/psxtests/psx10/init.c @@ -47,6 +47,10 @@ void *POSIX_Init( printf( "status = %d\n", status ); assert( status == EINVAL ); + puts( "Init: pthread_condattr_init" ); + status = pthread_condattr_init( &attr ); + assert( !status ); + puts( "Init: pthread_condattr_setpshared - PTHREAD_PROCESS_SHARED" ); status = pthread_condattr_setpshared( &attr, PTHREAD_PROCESS_SHARED ); assert( !status ); @@ -88,6 +92,10 @@ void *POSIX_Init( status = pthread_cond_destroy( &cond ); assert( !status ); + puts( "Init: pthread_cond_init - attr" ); + status = pthread_cond_init( &cond, &attr ); + assert( !status ); + /* create a thread */ /* |