diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-04-27 13:44:54 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-04-27 13:44:54 +0000 |
commit | 39b3d876b61991f92de9c58b41ec284d28d7fb2d (patch) | |
tree | 9e51c310469a3d9ed214c7c69f01e894f2abf87a /c/src/tests/psxtests/psx07 | |
parent | regenerated (diff) | |
download | rtems-39b3d876b61991f92de9c58b41ec284d28d7fb2d.tar.bz2 |
Reset the pthread attributes structure so the proper error would be
generated.
Diffstat (limited to 'c/src/tests/psxtests/psx07')
-rw-r--r-- | c/src/tests/psxtests/psx07/init.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/c/src/tests/psxtests/psx07/init.c b/c/src/tests/psxtests/psx07/init.c index 19a04cfe93..f4da65213a 100644 --- a/c/src/tests/psxtests/psx07/init.c +++ b/c/src/tests/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 ); |