diff options
author | Mark Johannes <Mark.Johannes@OARcorp.com> | 1996-08-09 18:28:21 +0000 |
---|---|---|
committer | Mark Johannes <Mark.Johannes@OARcorp.com> | 1996-08-09 18:28:21 +0000 |
commit | 695dd0b64c962fd0c09c92c89debcfd5cf30d568 (patch) | |
tree | 361169c93a7cb78b6b4edd59fe147fcd5a7dc891 /c/src/tests | |
parent | added test cases for invalid key ids (diff) | |
download | rtems-695dd0b64c962fd0c09c92c89debcfd5cf30d568.tar.bz2 |
Init: added condattr - destroy, init, set and get cases
Diffstat (limited to 'c/src/tests')
-rw-r--r-- | c/src/tests/psxtests/psx10/init.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/c/src/tests/psxtests/psx10/init.c b/c/src/tests/psxtests/psx10/init.c index 90fc53b6f4..790d7ffcaa 100644 --- a/c/src/tests/psxtests/psx10/init.c +++ b/c/src/tests/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 */ } |