From ff53a6d4fadd590b335b758abe05ad4f138e9c8c Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 14 Aug 1996 19:30:49 +0000 Subject: added test case for pthread_attr_getscope being passed a NULL contentionscope --- c/src/tests/psxtests/psx07/init.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'c/src/tests') 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 ); -- cgit v1.2.3