IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 986e19aa authored by Hans Dembinski's avatar Hans Dembinski
Browse files

fix

parent bc20df1b
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ build: ...@@ -14,7 +14,7 @@ build:
- cmake --build . -- -j4 - cmake --build . -- -j4
- UBSAN_OPTIONS=print_stacktrace=1 - UBSAN_OPTIONS=print_stacktrace=1
LSAN_OPTIONS=verbosity=1:log_threads=1 LSAN_OPTIONS=verbosity=1:log_threads=1
ASAN_OPTIONS=detect_leaks=1:detect_stack_use_after_return=1 ctest -V -O test.log ASAN_OPTIONS=detect_leaks=0:detect_stack_use_after_return=1 ctest -V -O test.log
artifacts: artifacts:
expire_in: 1 week expire_in: 1 week
paths: paths:
......
...@@ -103,12 +103,9 @@ function (CORSIKA_ADD_TEST name) ...@@ -103,12 +103,9 @@ function (CORSIKA_ADD_TEST name)
file (MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/test_outputs/) file (MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/test_outputs/)
add_test (NAME ${name} COMMAND ${name} -o ${PROJECT_BINARY_DIR}/test_outputs/junit-${name}.xml -r junit) add_test (NAME ${name} COMMAND ${name} -o ${PROJECT_BINARY_DIR}/test_outputs/junit-${name}.xml -r junit)
# set(sanitize "address,implicit-integer-truncation,implicit-conversion,integer,alignment,bool,builtin,bounds,enum,float-cast-overflow,function,pointer-overflow,return,shift,shift-base,shift-exponent,unreachable,vla-bound,vptr") # set(sanitize "address,implicit-integer-truncation,implicit-conversion,integer,alignment,bool,builtin,bounds,enum,float-cast-overflow,function,pointer-overflow,return,shift,shift-base,shift-exponent,unreachable,vla-bound,vptr")
set(sanitize "address,undefined") # standard options not ideal, because we want to allow divide-by-zero for floats,
### leak sanitizer disabled for now, doesn't work on buildbot # but gcc-7 doesn't support all the detailed flags
# if(NOT CMAKE_CXX_COMPILER_ID STREQUAL AppleClang) set(sanitize "address,undefined")
# # Apple has some security measures which interfere with the leak sanitizer, so we can't use it on OSX
# set(sanitize "leak,${sanitize}")
# endif()
target_compile_options(${name} PRIVATE -fno-omit-frame-pointer -fsanitize=${sanitize} -fno-sanitize-recover=all) target_compile_options(${name} PRIVATE -fno-omit-frame-pointer -fsanitize=${sanitize} -fno-sanitize-recover=all)
set_target_properties(${name} PROPERTIES LINK_FLAGS "-fsanitize=${sanitize}") set_target_properties(${name} PROPERTIES LINK_FLAGS "-fsanitize=${sanitize}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment