Changeset 256a462 in rtems
- Timestamp:
- 08/20/96 21:41:08 (27 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 6702bffc
- Parents:
- c5c5f8c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/tests/psxtests/psx05/init.c
rc5c5f8c r256a462 225 225 empty_line(); 226 226 227 puts( "Init: pthread_mutex_init - EINVAL (NULL mutex_id)" ); 228 status = pthread_mutex_init( NULL, &attr ); 229 assert( status == EINVAL ); 230 227 231 puts( "Init: pthread_mutex_init - EINVAL (not initialized attr)" ); 228 232 status = pthread_mutex_init( &Mutex_id, &destroyed_attr ); … … 271 275 printf( "status = %d\n", status ); 272 276 assert( !status ); 277 278 puts( "Init: pthread_mutex_init - EBUSY (attempt to initialize an existing mutex)" ); 279 status = pthread_mutex_init( &Mutex_id, &attr ); 280 if ( !status ) 281 printf( "status = %d\n", status ); 282 assert( status == EBUSY ); 273 283 274 284 puts( "Init: pthread_mutex_trylock - EINVAL (illegal ID)" ); -
testsuites/psxtests/psx05/init.c
rc5c5f8c r256a462 225 225 empty_line(); 226 226 227 puts( "Init: pthread_mutex_init - EINVAL (NULL mutex_id)" ); 228 status = pthread_mutex_init( NULL, &attr ); 229 assert( status == EINVAL ); 230 227 231 puts( "Init: pthread_mutex_init - EINVAL (not initialized attr)" ); 228 232 status = pthread_mutex_init( &Mutex_id, &destroyed_attr ); … … 271 275 printf( "status = %d\n", status ); 272 276 assert( !status ); 277 278 puts( "Init: pthread_mutex_init - EBUSY (attempt to initialize an existing mutex)" ); 279 status = pthread_mutex_init( &Mutex_id, &attr ); 280 if ( !status ) 281 printf( "status = %d\n", status ); 282 assert( status == EBUSY ); 273 283 274 284 puts( "Init: pthread_mutex_trylock - EINVAL (illegal ID)" );
Note: See TracChangeset
for help on using the changeset viewer.