diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-08-09 19:50:26 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-08-09 19:50:26 +0000 |
commit | c03aeaffbec0f69661222ebaf41577f350fbb88a (patch) | |
tree | 61c6d1b67f700e41939c80a982c3ffcd48808ff1 /c | |
parent | changed style of output to match other tests (diff) | |
download | rtems-c03aeaffbec0f69661222ebaf41577f350fbb88a.tar.bz2 |
added test case for pthread_mutexattr_init being passed a null pointer.
Diffstat (limited to 'c')
-rw-r--r-- | c/src/tests/psxtests/psx05/init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/c/src/tests/psxtests/psx05/init.c b/c/src/tests/psxtests/psx05/init.c index 71340da59e..a6f25fd42b 100644 --- a/c/src/tests/psxtests/psx05/init.c +++ b/c/src/tests/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 ); |