[rtems commit] libtests/heapwalk: Fix for RTEMS_DEBUG
Sebastian Huber
sebh at rtems.org
Wed Apr 29 04:58:29 UTC 2020
Module: rtems
Branch: master
Commit: a8f0d941c3ec26eb972ab3a98a9d383cd6726e2a
Changeset: http://git.rtems.org/rtems/commit/?id=a8f0d941c3ec26eb972ab3a98a9d383cd6726e2a
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Apr 29 06:52:11 2020 +0200
libtests/heapwalk: Fix for RTEMS_DEBUG
Update #2962.
---
testsuites/libtests/heapwalk/init.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/testsuites/libtests/heapwalk/init.c b/testsuites/libtests/heapwalk/init.c
index 3bd6c91..cd5caaa 100644
--- a/testsuites/libtests/heapwalk/init.c
+++ b/testsuites/libtests/heapwalk/init.c
@@ -71,8 +71,11 @@ static void test_create_heap_with_gaps(void)
void *p5 = test_allocate_block();
/* void *p6 = */ test_allocate_block();
_Heap_Free( &TestHeap, p1 );
+ _Heap_Protection_free_all_delayed_blocks( &TestHeap );
_Heap_Free( &TestHeap, p3 );
+ _Heap_Protection_free_all_delayed_blocks( &TestHeap );
_Heap_Free( &TestHeap, p5 );
+ _Heap_Protection_free_all_delayed_blocks( &TestHeap );
}
static void *test_fill_heap(void)
More information about the vc
mailing list