mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-12 19:04:18 +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>
9 lines
227 B
CMake
9 lines
227 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
cmake_minimum_required(VERSION 3.13.1)
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
project(heap_align)
|
|
|
|
FILE(GLOB app_sources src/*.c)
|
|
target_sources(app PRIVATE ${app_sources})
|