mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 23:11:57 +00:00
Test of the sys_heap_aligned_alloc() API. This is separate from the existing heap test because aligned_alloc() requires a kconfig to enable it that can change the heap block header format and will impact code coverage of the "small" block variant. It's a fairly simple whitebox test that instantiates a heap and then enumerates all possible alignments within it, with and without pre-allocated data, to verify that the resulting memory is correctly aligned and the heap stays consistent. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
4 lines
74 B
Plaintext
4 lines
74 B
Plaintext
CONFIG_ZTEST=y
|
|
CONFIG_SYS_HEAP_VALIDATE=y
|
|
CONFIG_SYS_HEAP_ALIGNED_ALLOC=y
|