diff --git a/zephyr/test/vmh.c b/zephyr/test/vmh.c index 0ed36c4d8691..005498db0721 100644 --- a/zephyr/test/vmh.c +++ b/zephyr/test/vmh.c @@ -14,11 +14,21 @@ static int vmh_test(void) { - struct virtual_memory_heap *h = vmh_init_heap(NULL, MEM_REG_ATTR_CORE_HEAP, 0, false); + struct vmh_heap *h = vmh_init_heap(NULL, MEM_REG_ATTR_CORE_HEAP, 0, false); if (!h) return -EINVAL; + char *buf = vmh_alloc(h, 1616); + + if (!buf) + return -ENOMEM; + + buf[0] = 0; + buf[1615] = 15; + + vmh_free(h, buf); + return vmh_free_heap(h); }