added test case for pthread_mutexattr_init being passed a null pointer.

This commit is contained in:
Joel Sherrill
1996-08-09 19:50:26 +00:00
parent 76117f2bd9
commit c03aeaffbe
2 changed files with 8 additions and 0 deletions

View File

@@ -96,6 +96,10 @@ void *POSIX_Init(
/* basic checkout of mutex attributes */
puts( "Init: pthread_mutexattr_init - EINVAL (NULL attr)" );
status = pthread_mutexattr_init( NULL );
assert( status == EINVAL );
puts( "Init: pthread_mutexattr_init - SUCCESSFUL" );
status = pthread_mutexattr_init( &attr );
assert( !status );