IAP GITLAB

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

fix

parent 0d06b011
No related branches found
No related tags found
1 merge request!106Adding sanitizers revealed bugs
...@@ -12,7 +12,9 @@ build: ...@@ -12,7 +12,9 @@ build:
- cd build - cd build
- cmake .. - cmake ..
- cmake --build . -- -j 4 - cmake --build . -- -j 4
- ctest -j4 -V >& test.log - UBSAN_OPTIONS=print_stacktrace=1
LSAN_OPTIONS=verbosity=1:log_threads=1
ASAN_OPTIONS=detect_leaks=1:detect_stack_use_after_return=1 ctest -j4 -V -O test.log
after_script: after_script:
- cd build - cd build
- ls - ls
......
...@@ -101,8 +101,7 @@ endmacro(CORSIKA_ADD_FILES_ABSOLUTE) ...@@ -101,8 +101,7 @@ endmacro(CORSIKA_ADD_FILES_ABSOLUTE)
function (CORSIKA_ADD_TEST name) function (CORSIKA_ADD_TEST name)
target_include_directories (${name} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) target_include_directories (${name} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
file (MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/test_outputs/) file (MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/test_outputs/)
add_test (NAME ${name} COMMAND LSAN_OPTIONS=verbosity=1:log_threads=1 add_test (NAME ${name} COMMAND ${name} -o ${PROJECT_BINARY_DIR}/test_outputs/junit-${name}.xml -r junit)
${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") set(sanitize "address,undefined")
### leak sanitizer disabled for now, doesn't work on buildbot ### leak sanitizer disabled for now, doesn't work on buildbot
......
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