Skip to content

Commit

Permalink
ztest: include: unittest: relocate cpu.h and include only if unit-test
Browse files Browse the repository at this point in the history
The `cpu.h` is meant to be a hack around Zephyr's dependencies
for unit-test, relocate it to a folder that's included only by
unit-test.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
  • Loading branch information
ycsin authored and carlescufi committed May 10, 2024
1 parent af78efa commit 2e072ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/modules/unittest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ endforeach()

list(APPEND INCLUDE
subsys/testsuite/ztest/include/zephyr
subsys/testsuite/ztest/unittest/include
subsys/testsuite/include/zephyr
subsys/testsuite/ztest/include
subsys/testsuite/include
Expand Down

0 comments on commit 2e072ad

Please sign in to comment.