Changeset 221bd65 in rtems


Ignore:
Timestamp:
08/12/96 20:00:02 (27 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
702a31c
Parents:
5f08fd6
Message:

added test case for stack too large

Files:
2 edited

Legend:

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

    r5f08fd6 r221bd65  
    3333#endif
    3434}
     35 
     36extern rtems_configuration_table BSP_Configuration;
    3537
    3638void *POSIX_Init(
     
    102104  assert( status == EINVAL );
    103105
     106  attr.stacksize = BSP_Configuration.work_space_size;
     107  puts( "Init: pthread_create - EINVAL (stacksize too large)" );
     108  status = pthread_create( &Task_id, &attr, Task_1, NULL );
     109  assert( status == EINVAL );
     110
    104111  status = pthread_attr_init( &attr );
    105112  assert( !status );
  • testsuites/psxtests/psx07/init.c

    r5f08fd6 r221bd65  
    3333#endif
    3434}
     35 
     36extern rtems_configuration_table BSP_Configuration;
    3537
    3638void *POSIX_Init(
     
    102104  assert( status == EINVAL );
    103105
     106  attr.stacksize = BSP_Configuration.work_space_size;
     107  puts( "Init: pthread_create - EINVAL (stacksize too large)" );
     108  status = pthread_create( &Task_id, &attr, Task_1, NULL );
     109  assert( status == EINVAL );
     110
    104111  status = pthread_attr_init( &attr );
    105112  assert( !status );
Note: See TracChangeset for help on using the changeset viewer.