[rtems commit] libtests/malloctest: Fix heap extend test case

Sebastian Huber sebh at rtems.org
Mon Nov 18 13:51:00 UTC 2013


Module:    rtems
Branch:    master
Commit:    435f2c056bc5b2a27d03fd6a807cb82df8e24bb4
Changeset: http://git.rtems.org/rtems/commit/?id=435f2c056bc5b2a27d03fd6a807cb82df8e24bb4

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Nov 15 14:11:51 2013 +0100

libtests/malloctest: Fix heap extend test case

---

 testsuites/libtests/malloctest/init.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/testsuites/libtests/malloctest/init.c b/testsuites/libtests/malloctest/init.c
index dea4c2b..ace454f 100644
--- a/testsuites/libtests/malloctest/init.c
+++ b/testsuites/libtests/malloctest/init.c
@@ -978,7 +978,7 @@ static void test_heap_extend(void)
 
   _Heap_Initialize( heap, area_begin + 768, 256, 0 );
   sub_area_begin = (uint8_t *) heap->first_block;
-  sub_area_end = (uint8_t *) _Heap_Alloc_area_of_block( heap->last_block );
+  sub_area_end = (uint8_t *) heap->first_block->prev_size;
 
   puts( "heap extend - link below" );
   ret = _Protected_heap_Extend( heap, area_begin + 0, 256 );




More information about the vc mailing list