Ignore:
Timestamp:
Apr 20, 2004, 7:09:31 AM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
c8e8f119
Parents:
d3fdf89f
Message:

Remove stray white spaces.

File:
1 edited

Legend:

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

    rd3fdf89f r8f71a36  
    3333  uint32_t      task_count = 0;
    3434  rtems_id            removed_ids[TASK_ALLOCATION_SIZE * 2];
    35  
     35
    3636  char               c1 = 'a';
    3737  char               c2 = 'a';
    3838  char               c3 = '0';
    3939  char               c4 = '0';
    40  
     40
    4141  printf( "\n TEST2 : re-allocate of index numbers, and a block free'ed and one inactive\n" );
    4242
     
    4545   *  to count the Init task, ie ... - 1.
    4646   */
    47  
     47
    4848  while (task_count < ((TASK_ALLOCATION_SIZE * 5) - TASK_INDEX_OFFSET))
    4949  {
     
    5151
    5252    printf(" TEST2 : creating task '%c%c%c%c', ", c1, c2, c3, c4);
    53    
     53
    5454    name = rtems_build_name(c1, c2, c3, c4);
    5555
     
    6363    if (status_code_bad(result))
    6464      break;
    65    
     65
    6666    printf("number = %3i, id = %08x, starting, ", task_count, task_id[task_count]);
    6767    fflush(stdout);
    68    
     68
    6969    result = rtems_task_start(task_id[task_count],
    7070                              test_task,
    7171                              (rtems_task_argument) task_count);
    72    
     72
    7373    if (status_code_bad(result))
    7474      break;
    75    
     75
    7676    /*
    7777     *  Update the name.
    7878     */
    79    
     79
    8080    NEXT_TASK_NAME(c1, c2, c3, c4);
    81    
     81
    8282    task_count++;
    8383  }
     
    9696
    9797  task = 0;
    98  
     98
    9999  for (block = 1; block < 4; block += 2)
    100100  {
     
    115115       * Save the id's to match them against the reallocated ids
    116116       */
    117      
     117
    118118      removed_ids[task++] = task_id[remove_task];
    119      
     119
    120120      printf(" TEST2 : block %i remove, signal task %08x, ", block, task_id[remove_task]);
    121121      rtems_event_send(task_id[remove_task], 1);
     
    136136      if (!task_id[id_slot])
    137137        break;
    138      
     138
    139139    if (id_slot == MAX_TASKS)
    140140    {
     
    145145
    146146    printf(" TEST2 : creating task '%c%c%c%c', ", c1, c2, c3, c4);
    147    
     147
    148148    name = rtems_build_name(c1, c2, c3, c4);
    149149
     
    154154                               RTEMS_LOCAL,
    155155                               &task_id[id_slot]);
    156    
     156
    157157    if (status_code_bad(result))
    158158    {
     
    163163      exit( 1 );
    164164    }
    165    
     165
    166166    printf("number = %3i, id = %08x, starting, ", task_count, task_id[id_slot]);
    167    
     167
    168168    result = rtems_task_start(task_id[id_slot],
    169169                              test_task,
    170170                              (rtems_task_argument) task_count);
    171    
     171
    172172    if (status_code_bad(result))
    173173    {
     
    178178      exit( 1 );
    179179    }
    180    
     180
    181181    /*
    182182     *  Update the name.
    183183     */
    184    
     184
    185185    NEXT_TASK_NAME(c1, c2, c3, c4);
    186    
     186
    187187    /*
    188188     *  Search the removed ids to see if it existed, clear the removed id when found
    189189     */
    190    
     190
    191191    for (remove_task = 0; remove_task < (TASK_ALLOCATION_SIZE * 2); remove_task++)
    192192      if (removed_ids[remove_task] == task_id[id_slot])
     
    200200     *  already allocated
    201201     */
    202    
     202
    203203    if (remove_task == (TASK_ALLOCATION_SIZE * 2))
    204204    {
    205205      uint32_t   allocated_id;
    206      
     206
    207207      for (allocated_id = 0; allocated_id < MAX_TASKS; allocated_id++)
    208208        if ((task_id[id_slot] == task_id[allocated_id]) && (id_slot != allocated_id))
     
    213213          exit( 1 );
    214214        }
    215      
     215
    216216      printf( " FAIL2 : could not find the task id in the removed table -\n"
    217217              "         task id = %08x\n",
     
    222222    task_count++;
    223223  }
    224  
     224
    225225  destory_all_tasks("TEST2");
    226  
     226
    227227  printf( " TEST2 : completed\n" );
    228228}
Note: See TracChangeset for help on using the changeset viewer.