diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-08-14 19:30:49 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-08-14 19:30:49 +0000 |
commit | ff53a6d4fadd590b335b758abe05ad4f138e9c8c (patch) | |
tree | 0c66e7b2fb0da84e30370e5caa1f67f0a7eeb866 /c/src/tests/psxtests/psx07/init.c | |
parent | commented of ENOTSUP until fixed in newlib (diff) | |
download | rtems-ff53a6d4fadd590b335b758abe05ad4f138e9c8c.tar.bz2 |
added test case for pthread_attr_getscope being passed a NULL contentionscope
Diffstat (limited to '')
-rw-r--r-- | c/src/tests/psxtests/psx07/init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/c/src/tests/psxtests/psx07/init.c b/c/src/tests/psxtests/psx07/init.c index 4cd65a8426..37c02e9b70 100644 --- a/c/src/tests/psxtests/psx07/init.c +++ b/c/src/tests/psxtests/psx07/init.c @@ -178,6 +178,10 @@ void *POSIX_Init( status = pthread_attr_getscope( NULL, &scope ); assert( status == EINVAL ); + puts( "Init: pthread_attr_getscope - EINVAL (NULL scope)" ); + status = pthread_attr_getscope( &attr, NULL ); + assert( status == EINVAL ); + puts( "Init: pthread_attr_getscope - EINVAL (not initialized attr)" ); status = pthread_attr_getscope( &destroyed_attr, &scope ); assert( status == EINVAL ); |