summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorMark Johannes <Mark.Johannes@OARcorp.com>1996-08-12 15:15:51 +0000
committerMark Johannes <Mark.Johannes@OARcorp.com>1996-08-12 15:15:51 +0000
commit0cd15947c8789604b182d8f387610dc7d6b2d53a (patch)
tree1a20816bc871bd3584f12b81ec52e6211252995a /testsuites
parentInit: added prliminary phtread_cond_init and destroy cases. (diff)
downloadrtems-0cd15947c8789604b182d8f387610dc7d6b2d53a.tar.bz2
Init: added pthread_cond_init with an attr non-NULL, initialized the attr again
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/psxtests/psx10/init.c8
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 */
/*