From 18065ac132d6d56dafc7917a781cc7e81b59ffda Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Thu, 2 Jul 2015 11:44:53 +1000 Subject: Add mem_dump_free() call to mem_region unit test Signed-off-by: Stewart Smith --- core/test/run-mem_region.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/test/run-mem_region.c b/core/test/run-mem_region.c index 7164f09..a24e736 100644 --- a/core/test/run-mem_region.c +++ b/core/test/run-mem_region.c @@ -145,6 +145,7 @@ int main(void) <= (void *)test_heap + TEST_HEAP_SIZE); assert(mem_check(&skiboot_heap)); } + mem_dump_free(); for (i = 0; i < 100; i++) mem_free(&skiboot_heap, ptrs[100 - 1 - i], "freed"); @@ -245,6 +246,7 @@ int main(void) assert(mem_check(r)); i++; } + mem_dump_free(); assert(i == 3); while ((r = list_pop(®ions, struct mem_region, list)) != NULL) { list_del(&r->list); -- cgit v1.1