test: self: malloc: fix false positive when using libc allocator The initial memory pool allocated
Signed-off-by: Ahmad Fatoum <[email protected]> --- test/self/malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/self/malloc.c b/test/self/malloc.c index cf307158fb7e..1ec351c3efe5 100644 --- a/test/self/malloc.c +++ b/test/self/malloc.c @@ -110,7 +110,7 @@ static void test_malloc(void) if (mem_malloc_size) { tmp = realloc(p, mem_malloc_size); - if (!malloc_store_is_registered()) + if (!malloc_store_is_registered() && !have_overcommit) __expect_cond(tmp, false, "realloc of mem_malloc_size", __func__, __LINE__); if (tmp) -- 2.47.3
