mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 14:18:20 +00:00
added test case for stack too large
This commit is contained in:
@@ -32,6 +32,8 @@ void print_schedparam(
|
||||
printf( "%s_POSIX_SPORADIC_SERVER is not defined\n" );
|
||||
#endif
|
||||
}
|
||||
|
||||
extern rtems_configuration_table BSP_Configuration;
|
||||
|
||||
void *POSIX_Init(
|
||||
void *argument
|
||||
@@ -101,6 +103,11 @@ void *POSIX_Init(
|
||||
status = pthread_create( &Task_id, &attr, Task_1, NULL );
|
||||
assert( status == EINVAL );
|
||||
|
||||
attr.stacksize = BSP_Configuration.work_space_size;
|
||||
puts( "Init: pthread_create - EINVAL (stacksize too large)" );
|
||||
status = pthread_create( &Task_id, &attr, Task_1, NULL );
|
||||
assert( status == EINVAL );
|
||||
|
||||
status = pthread_attr_init( &attr );
|
||||
assert( !status );
|
||||
|
||||
|
||||
@@ -32,6 +32,8 @@ void print_schedparam(
|
||||
printf( "%s_POSIX_SPORADIC_SERVER is not defined\n" );
|
||||
#endif
|
||||
}
|
||||
|
||||
extern rtems_configuration_table BSP_Configuration;
|
||||
|
||||
void *POSIX_Init(
|
||||
void *argument
|
||||
@@ -101,6 +103,11 @@ void *POSIX_Init(
|
||||
status = pthread_create( &Task_id, &attr, Task_1, NULL );
|
||||
assert( status == EINVAL );
|
||||
|
||||
attr.stacksize = BSP_Configuration.work_space_size;
|
||||
puts( "Init: pthread_create - EINVAL (stacksize too large)" );
|
||||
status = pthread_create( &Task_id, &attr, Task_1, NULL );
|
||||
assert( status == EINVAL );
|
||||
|
||||
status = pthread_attr_init( &attr );
|
||||
assert( !status );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user