Skip to content
Permalink
Browse files

cmake: silence "WARNING: ASSERTs enabled" when CONFIG_TEST is true

TEST configurations don't need to be warned that they're using test
techniques with some side-effects.

On a typical sanitycheck invocation, this warning is one of the only two
that appears in most test runs. In other words this commit gets rid of
half of the entire grep -ri '[[:blank:]]warn' noise that obscures any
work-in-progress warnings or platform specific warnings in the
logs (typically: device tree warnings).

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
  • Loading branch information...
marc-hb authored and nashif committed Jun 17, 2019
1 parent 09821e5 commit 83723109be6b5c4fd93d98845f18de0c5adefcbe
Showing with 2 additions and 0 deletions.
  1. +2 −0 CMakeLists.txt
@@ -1396,6 +1396,7 @@ add_subdirectory(cmake/flash)
add_subdirectory(cmake/usage)
add_subdirectory(cmake/reports)

if(NOT CONFIG_TEST)
if(CONFIG_ASSERT AND (NOT CONFIG_FORCE_NO_ASSERT))
message(WARNING "
------------------------------------------------------------
@@ -1404,6 +1405,7 @@ if(CONFIG_ASSERT AND (NOT CONFIG_FORCE_NO_ASSERT))
------------------------------------------------------------"
)
endif()
endif()

if(CONFIG_BOARD_DEPRECATED)
message(WARNING "

0 comments on commit 8372310

Please sign in to comment.
You can’t perform that action at this time.