Ignore:
Timestamp:
Jan 3, 2003, 8:51:34 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
ea14663
Parents:
6bd96fc7
Message:

2002-10-31 Chris Johns <ccj@…>

  • unlimited/test1.c: PR296. Only fails if more tasks than allowed can be created.
  • unlimited/system.h: PR296. Reference the number of tasks in the configuration table rather than a hardcoded number.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/samples/unlimited/test1.c

    r6bd96fc7 r3d9f688e  
    2828  rtems_status_code result;
    2929  rtems_unsigned32  task_count = 0;
     30  rtems_unsigned32  expected_count;
    3031  Objects_Information *the_information;
    3132 
     
    4647  auto_extend = the_information->auto_extend;
    4748  the_information->auto_extend = FALSE;
    48  
     49  expected_count = the_information->inactive;
     50
    4951  while (task_count < MAX_TASKS)
    5052  {
     
    8789    printf( "\nMAX_TASKS too small for work-space size, please make larger !!\n\n" );
    8890   
    89   if (task_count != (TASK_ALLOCATION_SIZE - 1)) {
     91  if (task_count != expected_count) {
    9092    printf( " FAIL1 : the number of tasks does not equal the expected size -\n"
    9193            "           task created = %i, required number = %i\n",
     
    100102  printf( " TEST1 : completed\n" );
    101103}
    102 
    103 
    104 
    105 
    106 
Note: See TracChangeset for help on using the changeset viewer.