forked from Imagelibrary/rtems
added test case for pthread_attr_getscope being passed a NULL contentionscope
This commit is contained in:
@@ -178,6 +178,10 @@ void *POSIX_Init(
|
|||||||
status = pthread_attr_getscope( NULL, &scope );
|
status = pthread_attr_getscope( NULL, &scope );
|
||||||
assert( status == EINVAL );
|
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)" );
|
puts( "Init: pthread_attr_getscope - EINVAL (not initialized attr)" );
|
||||||
status = pthread_attr_getscope( &destroyed_attr, &scope );
|
status = pthread_attr_getscope( &destroyed_attr, &scope );
|
||||||
assert( status == EINVAL );
|
assert( status == EINVAL );
|
||||||
|
|||||||
@@ -178,6 +178,10 @@ void *POSIX_Init(
|
|||||||
status = pthread_attr_getscope( NULL, &scope );
|
status = pthread_attr_getscope( NULL, &scope );
|
||||||
assert( status == EINVAL );
|
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)" );
|
puts( "Init: pthread_attr_getscope - EINVAL (not initialized attr)" );
|
||||||
status = pthread_attr_getscope( &destroyed_attr, &scope );
|
status = pthread_attr_getscope( &destroyed_attr, &scope );
|
||||||
assert( status == EINVAL );
|
assert( status == EINVAL );
|
||||||
|
|||||||
Reference in New Issue
Block a user