summaryrefslogtreecommitdiffstats
path: root/c/src/tests
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-08-14 19:30:49 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-08-14 19:30:49 +0000
commitff53a6d4fadd590b335b758abe05ad4f138e9c8c (patch)
tree0c66e7b2fb0da84e30370e5caa1f67f0a7eeb866 /c/src/tests
parentcommented of ENOTSUP until fixed in newlib (diff)
downloadrtems-ff53a6d4fadd590b335b758abe05ad4f138e9c8c.tar.bz2
added test case for pthread_attr_getscope being passed a NULL contentionscope
Diffstat (limited to 'c/src/tests')
-rw-r--r--c/src/tests/psxtests/psx07/init.c4
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 );