Skip to content

Commit a4eac53

Browse files
gmarullcarlescufi
authored andcommitted
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 <[email protected]>
1 parent ade7ccb commit a4eac53

File tree

2 files changed

+1
-0
lines changed

2 files changed

+1
-0
lines changed

cmake/modules/unittest.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ add_dependencies(testbinary ${KOBJ_TYPES_H_TARGET})
3232
gen_kobj(KOBJ_GEN_DIR)
3333

3434
list(APPEND INCLUDE
35+
subsys/testsuite/ztest/include/zephyr
3536
subsys/testsuite/ztest/include
3637
subsys/testsuite/include
3738
include/zephyr

0 commit comments

Comments
 (0)