summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psx10
diff options
context:
space:
mode:
authorMark Johannes <Mark.Johannes@OARcorp.com>1996-08-09 18:28:21 +0000
committerMark Johannes <Mark.Johannes@OARcorp.com>1996-08-09 18:28:21 +0000
commit695dd0b64c962fd0c09c92c89debcfd5cf30d568 (patch)
tree361169c93a7cb78b6b4edd59fe147fcd5a7dc891 /testsuites/psxtests/psx10
parentadded test cases for invalid key ids (diff)
downloadrtems-695dd0b64c962fd0c09c92c89debcfd5cf30d568.tar.bz2
Init: added condattr - destroy, init, set and get cases
Diffstat (limited to 'testsuites/psxtests/psx10')
-rw-r--r--testsuites/psxtests/psx10/init.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/testsuites/psxtests/psx10/init.c b/testsuites/psxtests/psx10/init.c
index 90fc53b6f4..790d7ffcaa 100644
--- a/testsuites/psxtests/psx10/init.c
+++ b/testsuites/psxtests/psx10/init.c
@@ -54,27 +54,27 @@ void *POSIX_Init(
status = pthread_condattr_setpshared( &attr, PTHREAD_PROCESS_PRIVATE );
assert( !status );
- puts( "Init: pthread_condattr_setpshared - EINVAL - attr" );
status = pthread_condattr_setpshared( NULL, PTHREAD_PROCESS_PRIVATE );
if ( status != EINVAL )
printf( "status = %d\n", status );
assert( status == EINVAL );
+ puts( "Init: pthread_condattr_setpshared - EINVAL - attr" );
- puts( "Init: pthread_condattr_setpshared - EINVAL - pshared" );
status = pthread_condattr_setpshared( &attr, 0xFFFFFF );
if ( status != EINVAL )
printf( "status = %d\n", status );
assert( status == EINVAL );
+ puts( "Init: pthread_condattr_setpshared - EINVAL - pshared" );
status = pthread_condattr_getpshared( &attr, &pshared );
assert( !status );
- printf( "Init: pthread_condattr_getpshared - %d", pshared );
+ printf( "Init: pthread_condattr_getpshared - %d\n", pshared );
- puts( "Init: pthread_condattr_getpshared - EINVAL" );
status = pthread_condattr_getpshared( NULL, &pshared );
if ( status != EINVAL )
printf( "status = %d\n", status );
assert( status == EINVAL );
+ puts( "Init: pthread_condattr_getpshared - EINVAL" );
Init_id = pthread_self();
printf( "Init: ID is 0x%08x\n", Init_id );
@@ -88,7 +88,8 @@ void *POSIX_Init(
/* exit this thread */
- pthread_exit( NULL );
+ puts( "*** END OF POSIX TEST 5 ***" );
+ exit( 0 );
return NULL; /* just so the compiler thinks we returned something */
}