From e717d20b0b3ff911d7c1bb2d76a4285ba1e737ae Mon Sep 17 00:00:00 2001 From: Mohamed Moawad Date: Wed, 23 Jul 2025 11:57:07 +0300 Subject: [PATCH] tests: lib: uuid: add heap arena for MINIMAL_LIBC compatibility The UUID library utilities require dynamic memory allocation for certain operations, but MINIMAL_LIBC provides no malloc heap by default. This causes test failures when UUID functions attempt to allocate memory. Add CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=256 to provide a minimal heap arena sufficient for UUID operations which typically require small heap allocations. Signed-off-by: Mohamed Moawad --- tests/lib/uuid/testcase.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/lib/uuid/testcase.yaml b/tests/lib/uuid/testcase.yaml index ebeda9b7eb0..de0da1c3875 100644 --- a/tests/lib/uuid/testcase.yaml +++ b/tests/lib/uuid/testcase.yaml @@ -12,6 +12,8 @@ tests: - CONFIG_MBEDTLS_SHA1=y - CONFIG_UUID_BASE64=y - CONFIG_BASE64=y + # UUID utilities need some heap, but MINIMAL_LIBC has none by default. + - CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=256 libraries.uuid.v4: extra_configs: - CONFIG_UUID_V4=y