Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions run_tests_asan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ rm ./tests_executable_asan
# compile with AddressSanitizer to catch memory-safety regressions (e.g. new/free mismatches, use-after-free)
g++ -fsanitize=address -g src/*.cpp -o tests_executable_asan

# run executable (leak detection is off: a pre-existing, separately tracked leak
# in the throw-by-pointer exception pattern would otherwise fail every run)
ASAN_OPTIONS=detect_leaks=0 ./tests_executable_asan
# run executable (leak detection is on, so an unfreed allocation fails the run)
ASAN_OPTIONS=detect_leaks=1 ./tests_executable_asan