Skip to content

Commit

Permalink
simplify host test
Browse files Browse the repository at this point in the history
Not sure was I was thinking about...
  • Loading branch information
philippe44 committed Nov 6, 2021
1 parent 23a18fc commit 7483d76
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions components/heap/test_multi_heap_host/test_multi_heap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,12 @@ TEST_CASE("multi_heap defrag realloc", "[multi_heap]")

void multi_heap_allocation_impl(int heap_size)
{
static uint8_t hostdata[16 * 1024 * 1024];
static uint8_t big_heap[16 * 1024 * 1024];
const int NUM_POINTERS = 64;

printf("Running multi-allocation test with heap_size %d...\n", heap_size);

multi_heap_handle_t hostheap = multi_heap_register(hostdata, sizeof(hostdata));
uint8_t *big_heap = (uint8_t *) multi_heap_malloc(hostheap, heap_size);
REQUIRE( big_heap );

REQUIRE( sizeof(big_heap) >= heap_size );
multi_heap_handle_t heap = multi_heap_register(big_heap, heap_size);

void *p[NUM_POINTERS] = { 0 };
Expand Down

0 comments on commit 7483d76

Please sign in to comment.