From c03aeaffbec0f69661222ebaf41577f350fbb88a Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 9 Aug 1996 19:50:26 +0000 Subject: added test case for pthread_mutexattr_init being passed a null pointer. --- testsuites/psxtests/psx05/init.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'testsuites/psxtests/psx05') diff --git a/testsuites/psxtests/psx05/init.c b/testsuites/psxtests/psx05/init.c index 71340da59e..a6f25fd42b 100644 --- a/testsuites/psxtests/psx05/init.c +++ b/testsuites/psxtests/psx05/init.c @@ -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 ); -- cgit v1.2.3