Skip to content

Commit

Permalink
fix leak sanitizer error suppresion
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuacolvin0 authored and hkalodner committed Nov 25, 2021
1 parent 20516fe commit c4649a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,13 @@ jobs:
command: |
mkdir -p packages/arb-avm-cpp/debug-asan
cd packages/arb-avm-cpp/debug-asan
echo 'leak:libtcmalloc.so' > /tmp/lsan-supressions
LSAN_OPTIONS=supressions=/tmp/lsan-supressions cmake -DCMAKE_BUILD_TYPE=Debug -DCODE_COVERAGE=True -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX_FLAGS=-fsanitize=address -DCMAKE_EXE_LINKER_FLAGS=-fsanitize=address ..
cmake -DCMAKE_BUILD_TYPE=Debug -DCODE_COVERAGE=True -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX_FLAGS=-fsanitize=address -DCMAKE_EXE_LINKER_FLAGS=-fsanitize=address ..
cmake --build . -j 2
- run:
name: Test
command: |
./bin/avm_tests -r junit > ${TEST_RESULTS}/arb-avm-cpp.xml
echo 'leak:libtcmalloc.so' > /tmp/lsan-supressions
LSAN_OPTIONS=supressions=/tmp/lsan-supressions ./bin/avm_tests -r junit > ${TEST_RESULTS}/arb-avm-cpp.xml
lcov --capture --directory . --output-file coverage.info
lcov --remove coverage.info --output-file coverage.info '/usr/*' '*/tests/*' '*/external/*'
lcov --list coverage.info
Expand Down

0 comments on commit c4649a9

Please sign in to comment.