Skip to content

Commit e717d20

Browse files
M-Moawadcfriedt
authored andcommitted
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 <[email protected]>
1 parent 6e079f3 commit e717d20

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/lib/uuid/testcase.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ tests:
1212
- CONFIG_MBEDTLS_SHA1=y
1313
- CONFIG_UUID_BASE64=y
1414
- CONFIG_BASE64=y
15+
# UUID utilities need some heap, but MINIMAL_LIBC has none by default.
16+
- CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=256
1517
libraries.uuid.v4:
1618
extra_configs:
1719
- CONFIG_UUID_V4=y

0 commit comments

Comments
 (0)