diff options
Diffstat (limited to 'testsuites/psxtests/psx07/init.c')
-rw-r--r-- | testsuites/psxtests/psx07/init.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/testsuites/psxtests/psx07/init.c b/testsuites/psxtests/psx07/init.c index 19a04cfe93..f4da65213a 100644 --- a/testsuites/psxtests/psx07/init.c +++ b/testsuites/psxtests/psx07/init.c @@ -103,7 +103,11 @@ void *POSIX_Init( status = pthread_create( &Task_id, &attr, Task_1, NULL ); assert( status == EINVAL ); - attr.stacksize = BSP_Configuration.work_space_size; + /* reset all the fields */ + status = pthread_attr_init( &attr ); + assert( !status ); + + attr.stacksize = BSP_Configuration.work_space_size * 10; puts( "Init: pthread_create - EAGAIN (stacksize too large)" ); status = pthread_create( &Task_id, &attr, Task_1, NULL ); assert( status == EAGAIN ); |