summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psx05
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-08-09 19:50:26 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-08-09 19:50:26 +0000
commitc03aeaffbec0f69661222ebaf41577f350fbb88a (patch)
tree61c6d1b67f700e41939c80a982c3ffcd48808ff1 /testsuites/psxtests/psx05
parentchanged style of output to match other tests (diff)
downloadrtems-c03aeaffbec0f69661222ebaf41577f350fbb88a.tar.bz2
added test case for pthread_mutexattr_init being passed a null pointer.
Diffstat (limited to 'testsuites/psxtests/psx05')
-rw-r--r--testsuites/psxtests/psx05/init.c4
1 files changed, 4 insertions, 0 deletions
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 );