WIP startup_shutdown test with ASAN on

This commit is contained in:
Daniel Agar
2017-01-01 21:53:49 -05:00
committed by Lorenz Meier
parent f8d7c53537
commit dc9a71b674
4 changed files with 151 additions and 4 deletions

View File

@@ -701,6 +701,7 @@ function(px4_add_common_flags)
)
endif()
# address sanitizer
if ($ENV{MEMORY_DEBUG} MATCHES "1")
message(STATUS "address sanitizer enabled")
if ("${OS}" STREQUAL "nuttx")
@@ -740,6 +741,11 @@ function(px4_add_common_flags)
)
endif()
# code coverage
if ($ENV{PX4_CODE_COVERAGE} MATCHES "1")
set(max_optimization -O0)
endif()
if (NOT ${CMAKE_C_COMPILER_ID} MATCHES ".*Clang.*")
list(APPEND _optimization_flags
-fno-strength-reduce

View File

@@ -0,0 +1,5 @@
include(cmake/configs/posix_sitl_default.cmake)
set(config_sitl_rcS_dir
posix-configs/SITL/init/test
)