Changeset 39b3d87 in rtems


Ignore:
Timestamp:
Apr 27, 1998, 1:44:54 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
9f0dfea
Parents:
ede7c5f
Message:

Reset the pthread attributes structure so the proper error would be
generated.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/psxtests/psx07/init.c

    rede7c5f r39b3d87  
    104104  assert( status == EINVAL );
    105105
    106   attr.stacksize = BSP_Configuration.work_space_size;
     106  /* reset all the fields */
     107  status = pthread_attr_init( &attr );
     108  assert( !status );
     109
     110  attr.stacksize = BSP_Configuration.work_space_size * 10;
    107111  puts( "Init: pthread_create - EAGAIN (stacksize too large)" );
    108112  status = pthread_create( &Task_id, &attr, Task_1, NULL );
  • testsuites/psxtests/psx07/init.c

    rede7c5f r39b3d87  
    104104  assert( status == EINVAL );
    105105
    106   attr.stacksize = BSP_Configuration.work_space_size;
     106  /* reset all the fields */
     107  status = pthread_attr_init( &attr );
     108  assert( !status );
     109
     110  attr.stacksize = BSP_Configuration.work_space_size * 10;
    107111  puts( "Init: pthread_create - EAGAIN (stacksize too large)" );
    108112  status = pthread_create( &Task_id, &attr, Task_1, NULL );
Note: See TracChangeset for help on using the changeset viewer.