Changeset bd03933 in rtems


Ignore:
Timestamp:
Aug 26, 2009, 2:13:38 AM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
39385ed5
Parents:
6749520
Message:

2009-08-25 Sebastian Huber <Sebastian.Huber@…>

  • sp59/init.c, sp59/sp59.scn: Added status code assignment. Fixed typos.
  • sp63/init.c: Check return value of _Heap_Initialize().
Location:
testsuites/sptests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    r6749520 rbd03933  
     12009-08-25      Sebastian Huber <Sebastian.Huber@embedded-brains.de>
     2
     3        * sp59/init.c, sp59/sp59.scn: Added status code assignment. Fixed typos.
     4        * sp63/init.c: Check return value of _Heap_Initialize().
     5
    162009-08-19      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • testsuites/sptests/sp59/init.c

    r6749520 rbd03933  
    2424
    2525  puts( "Blocking_task - wait for memory" );
    26   rtems_region_get_segment(
     26  status = rtems_region_get_segment(
    2727    Region,
    2828    ALLOC_SIZE,
     
    8080  directive_failed( status, "rtems_region_create of RN1" );
    8181
    82   puts( "TA1 - rtems_region_get_segment - get segment to consume memory" );
     82  puts( "Init - rtems_region_get_segment - get segment to consume memory" );
    8383  rtems_region_get_segment(
    8484    Region,
     
    9494  directive_failed( status, "rtems_task_wake_after" );
    9595
    96   puts( "Init1 - rtems_region_get_segment - return segment" );
     96  puts( "Init - rtems_region_get_segment - return segment" );
    9797  status = rtems_region_return_segment( Region, address_1 );
    9898  directive_failed( status, "rtems_region_return_segment" );
  • testsuites/sptests/sp59/sp59.scn

    r6749520 rbd03933  
    44Init - rtems_task_start - delay task - OK
    55Init - rtems_region_create - OK
    6 TA1 - rtems_region_get_segment - get segment to consume memory
     6Init - rtems_region_get_segment - get segment to consume memory
    77Init - rtems_task_wake_after - let other task block - OK
    88Blocking_task - wait for memory
    9 Init1 - rtems_region_get_segment - return segment
     9Init - rtems_region_get_segment - return segment
    1010Init - rtems_task_wake_after - let other task run again - OK
    1111Blocking_task - Got memory segment after freed
  • testsuites/sptests/sp63/init.c

    r6749520 rbd03933  
    3131  heap_size = _Heap_Initialize( &Heap, Memory, sizeof(Memory), 8 );
    3232  printf( "Init - Heap size=%d\n", heap_size );
     33  assert( heap_size );
    3334
    3435  puts( "Init - _Heap_Allocate - too large size (overflow)- not OK");
     
    6061  heap_size = _Heap_Initialize( &Heap, Memory, sizeof(Memory), 8 );
    6162  printf( "Init - Heap size=%d\n", heap_size );
     63  assert( heap_size );
    6264
    6365  puts( "Init - _Heap_Allocate_aligned - OK");
     
    98100          heap_size =
    99101            _Heap_Initialize( &Heap, &Memory[sz], sizeof(Memory)/2, 1 << pg );
    100           do {
    101             ptr1 = _Heap_Allocate_aligned( &Heap, alloc, 1 <<al );
    102           } while ( ptr1 );
     102          if ( heap_size != 0 ) {
     103            do {
     104              ptr1 = _Heap_Allocate_aligned( &Heap, alloc, 1 <<al );
     105            } while ( ptr1 );
     106          }
    103107        }
    104108      }
Note: See TracChangeset for help on using the changeset viewer.