Changeset 627b70e in rtems


Ignore:
Timestamp:
Mar 10, 2011, 3:41:58 PM (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
b2e48ffe
Parents:
73406bf
Message:

2011-03-10 Sebastian Huber <sebastian.huber@…>

  • heapwalk/init.c: Improve coverage.
  • heapwalk/heapwalk.scn: Update.
Location:
testsuites/libtests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/ChangeLog

    r73406bf r627b70e  
     12011-03-10      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * heapwalk/init.c: Improve coverage.
     4        * heapwalk/heapwalk.scn: Update.
     5
    162011-03-09      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • testsuites/libtests/heapwalk/heapwalk.scn

    r73406bf r627b70e  
    77        set allocation area of the first block to be non page-aligned
    88        clear the previous used flag of the first block
    9         set the previous block size of the first block to an invalid value
     9        mark last block as free
    1010        set invalid next block for last block
    1111testing the _Heap_Walk_check_free_list() function
     
    3131therefore use the (already tested) case with a page size of 0
    3232PASS[0]: page size 0, min block size 16
    33         area begin 0x0202C4BC, area end 0x0202D4BC
    34         first block 0x0202C4C0, last block 0x0202D4B0
    35         first free 0x0202C4C0, last free 0x0202C4C0
     33        area begin 0x0202D4BC, area end 0x0202E4BC
     34        first block 0x0202D4C0, last block 0x0202E4B0
     35        first free 0x0202D4C0, last free 0x0202D4C0
    3636FAIL[0]: page size is zero
    3737*** END OF HEAP WALK TEST ***
  • testsuites/libtests/heapwalk/init.c

    r73406bf r627b70e  
    132132  test_call_heap_walk( false );
    133133
     134  puts( "\tmark last block as free" );
     135  test_heap_init_custom();
     136  TestHeap.last_block->size_and_flag = 0;
     137  test_call_heap_walk( false );
     138
    134139  puts( "\tset invalid next block for last block" );
    135140  test_heap_init_custom();
    136   TestHeap.last_block->size_and_flag = 0;
     141  TestHeap.last_block->size_and_flag = HEAP_PREV_BLOCK_USED;
    137142  test_call_heap_walk( false );
    138143}
Note: See TracChangeset for help on using the changeset viewer.