test_multi_heap_host/test_multi_heap: fix undefined reference error when testing aligned_alloc with no heap poisoning

This commit is contained in:
Felipe Neves 2019-11-14 09:34:41 +08:00
parent aa100d2dfe
commit 45766daa4f

View file

@ -495,6 +495,8 @@ TEST_CASE("unaligned heaps", "[multi_heap]")
} }
} }
#ifndef CONFIG_HEAP_POISONING_NONE
TEST_CASE("multi_heap aligned allocations", "[multi_heap]") TEST_CASE("multi_heap aligned allocations", "[multi_heap]")
{ {
uint8_t test_heap[1024 * 1024]; uint8_t test_heap[1024 * 1024];
@ -538,3 +540,5 @@ TEST_CASE("multi_heap aligned allocations", "[multi_heap]")
printf("[ALIGNED_ALLOC] heap_size after: %d \n", multi_heap_free_size(heap)); printf("[ALIGNED_ALLOC] heap_size after: %d \n", multi_heap_free_size(heap));
REQUIRE((old_size - multi_heap_free_size(heap)) <= leakage); REQUIRE((old_size - multi_heap_free_size(heap)) <= leakage);
} }
#endif