Warning, /testsuites/libtests/heapwalk/heapwalk.scn is written in an unsupported language. File is not indexed.
0001 *** HEAP WALK TEST ***
0002 start with a system state != SYSTEM_STATE_UP
0003 testing the _Heap_Walk_check_control() function
0004 test what happens if page size = 0
0005 set page size to a not CPU-aligned value
0006 set minimal block size to a not page aligned value
0007 set allocation area of the first block to be non page-aligned
0008 clear the previous used flag of the first block
0009 mark last block as free
0010 set invalid next block for last block
0011 testing the _Heap_Walk_check_free_list() function
0012 no free blocks
0013 create a loop in the free list
0014 put a block outside the heap to the free list
0015 put a block on the free list, which is not page-aligned
0016 put a used block on the free list
0017 Walk freshly initialized heap
0018 Test the main loop
0019 set the blocksize so, that the next block is outside the heap
0020 walk a heap with blocks with different states of the previous-used flag
0021 create a block with a not page aligned size
0022 create a block with a size smaller than the min_block_size
0023 make a block with a size, so that the block reaches into the next block
0024 create a block with invalid successor
0025 make a block with a size, so that it includes the next block
0026 test the _Heap_Walk_check_free_block() function
0027 set a previous size for the next block which is not equal to the size of the actual block
0028 clear the previous_used flag of the first free block after an used block
0029 take a free block out of the free list
0030 test the output-function for the _Heap_Walk()
0031 therefore use the (already tested) case with a page size of 0
0032 PASS[0]: page size 0, min block size 16
0033 area begin 0x0202D4BC, area end 0x0202E4BC
0034 first block 0x0202D4C0, last block 0x0202E4B0
0035 first free 0x0202D4C0, last free 0x0202D4C0
0036 FAIL[0]: page size is zero
0037 *** END OF HEAP WALK TEST ***