diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-07-06 22:01:58 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-07-06 22:01:58 +0000 |
commit | 824b3d1c9083db327b723e19fb42691e7bc17cdf (patch) | |
tree | 7982501c2c5d4398adb63de57755a047ca0ec184 /testsuites/psxtests/psx05/init.c | |
parent | 2009-07-06 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-824b3d1c9083db327b723e19fb42691e7bc17cdf.tar.bz2 |
2009-07-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* psx05/init.c, psx05/psx05.scn: Add a couple of invalid Id cases.
Diffstat (limited to 'testsuites/psxtests/psx05/init.c')
-rw-r--r-- | testsuites/psxtests/psx05/init.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuites/psxtests/psx05/init.c b/testsuites/psxtests/psx05/init.c index 8dcda85802..e587a86e0e 100644 --- a/testsuites/psxtests/psx05/init.c +++ b/testsuites/psxtests/psx05/init.c @@ -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 ) |