summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c/src/tests/psxtests/psx07/init.c4
-rw-r--r--testsuites/psxtests/psx07/init.c4
2 files changed, 8 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 );
diff --git a/testsuites/psxtests/psx07/init.c b/testsuites/psxtests/psx07/init.c
index 4cd65a8426..37c02e9b70 100644
--- a/testsuites/psxtests/psx07/init.c
+++ b/testsuites/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 );