forked from Imagelibrary/rtems
2009-07-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* psx05/init.c, psx05/psx05.scn: Add a couple of invalid Id cases.
This commit is contained in:
@@ -365,6 +365,18 @@ void *POSIX_Init(
|
||||
printf( "status = %d\n", status );
|
||||
assert( status == EDEADLK );
|
||||
|
||||
puts( "Init: pthread_mutex_lock - EINVAL (NULL id)" );
|
||||
status = pthread_mutex_lock( NULL );
|
||||
if ( status != EINVAL )
|
||||
printf( "status = %d\n", status );
|
||||
assert( status == EINVAL );
|
||||
|
||||
puts( "Init: pthread_mutex_unlock - EINVAL (NULL id)" );
|
||||
status = pthread_mutex_unlock( NULL );
|
||||
if ( status != EINVAL )
|
||||
printf( "status = %d\n", status );
|
||||
assert( status == EINVAL );
|
||||
|
||||
puts( "Init: pthread_mutex_lock - EDEADLK (already locked)" );
|
||||
status = pthread_mutex_lock( &Mutex_id );
|
||||
if ( status != EDEADLK )
|
||||
|
||||
Reference in New Issue
Block a user