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:
Joel Sherrill
2009-07-06 22:01:58 +00:00
parent 9847e4b478
commit 824b3d1c90
3 changed files with 26 additions and 0 deletions

View File

@@ -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 )