From 8b6fb23bac98ff4b67219f4c020369cc0b0dce7d Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Fri, 23 Aug 2024 21:50:22 +0100 Subject: [PATCH] Use size utils in arena tests --- tests/arena/test_arena.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/arena/test_arena.c b/tests/arena/test_arena.c index 45313d0..edb288d 100644 --- a/tests/arena/test_arena.c +++ b/tests/arena/test_arena.c @@ -1,6 +1,7 @@ #include "test_arena.h" #include "aliases.h" #include "mem_arena.h" +#include "misc_utils.h" #include "tester.h" #include #include @@ -19,7 +20,7 @@ TestFuncResult test_arena_init(void) { TestFuncResult test_arena_init_succeeds_when_reserving_very_large_size(void) { Arena *large_arena = NULL; - u64 capacity = 512ull * 1024ull * 1024ull * 1024ull; + u64 capacity = GB(512); bool result = wapp_mem_arena_init(&large_arena, capacity, WAPP_MEM_ALLOC_RESERVE, false); if (result) {