ztest: add support for new and legacy include paths

The ztest unittest module relies on some headers that fake the real
ones, e.g. <zephyr/arch/cpu.h>. When new header location was introduced,
their path was not updates. This patch fixes this problem and provides
ztest with both, legacy and new include paths so that it can keep
working on both scenarios.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2022-05-06 15:27:18 +02:00 committed by Carles Cufí
commit a4eac53b9e
2 changed files with 1 additions and 0 deletions

View file

@ -32,6 +32,7 @@ add_dependencies(testbinary ${KOBJ_TYPES_H_TARGET})
gen_kobj(KOBJ_GEN_DIR)
list(APPEND INCLUDE
subsys/testsuite/ztest/include/zephyr
subsys/testsuite/ztest/include
subsys/testsuite/include
include/zephyr