From 0cd15947c8789604b182d8f387610dc7d6b2d53a Mon Sep 17 00:00:00 2001 From: Mark Johannes Date: Mon, 12 Aug 1996 15:15:51 +0000 Subject: Init: added pthread_cond_init with an attr non-NULL, initialized the attr again --- testsuites/psxtests/psx10/init.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'testsuites') 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 */ /* -- cgit v1.2.3