diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-03-10 15:41:58 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-03-10 15:41:58 +0000 |
commit | 627b70e10a4768584805a52e32628d549dafc25b (patch) | |
tree | 493eba0f0a5ffafab0a9b9117afe48e836c477f6 /testsuites/libtests/heapwalk/init.c | |
parent | 2011-03-10 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-627b70e10a4768584805a52e32628d549dafc25b.tar.bz2 |
2011-03-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
* heapwalk/init.c: Improve coverage.
* heapwalk/heapwalk.scn: Update.
Diffstat (limited to '')
-rw-r--r-- | testsuites/libtests/heapwalk/init.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/testsuites/libtests/heapwalk/init.c b/testsuites/libtests/heapwalk/init.c index 0cb161447a..c735f6a9a3 100644 --- a/testsuites/libtests/heapwalk/init.c +++ b/testsuites/libtests/heapwalk/init.c @@ -131,10 +131,15 @@ static void test_check_control(void) TestHeap.first_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; test_call_heap_walk( false ); - puts( "\tset invalid next block for last block" ); + puts( "\tmark last block as free" ); test_heap_init_custom(); TestHeap.last_block->size_and_flag = 0; test_call_heap_walk( false ); + + puts( "\tset invalid next block for last block" ); + test_heap_init_custom(); + TestHeap.last_block->size_and_flag = HEAP_PREV_BLOCK_USED; + test_call_heap_walk( false ); } static void test_check_free_list(void) |