diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-08-02 15:29:53 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-08-02 15:42:25 +0300 |
commit | 38ff5064b33ccb86c5b0d0145c981ffefe55d7eb (patch) | |
tree | aed924818c34418f38b3f9c975169f7f602312ac /tests | |
parent | f4b09008562e7acda39cdffb68066e7a0c631401 (diff) |
Tests: don't fail on leaks detected by leak sanitizer
These often happen in external libraries that we can't fix. The leaks are
still printed in the logs.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/python/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/python/CMakeLists.txt b/tests/python/CMakeLists.txt index 1e006ca611c..0d64aca3c1d 100644 --- a/tests/python/CMakeLists.txt +++ b/tests/python/CMakeLists.txt @@ -51,6 +51,10 @@ function(add_blender_test name) NAME ${name} COMMAND "$<TARGET_FILE:blender>" ${TEST_BLENDER_EXE_PARAMS} ${ARGN} ) + + # Don't fail tests on leaks since these often happen in external libraries + # that we can't fix. + set_tests_properties(${name} PROPERTIES ENVIRONMENT LSAN_OPTIONS="exitcode=0") endfunction() # Run Python script outside Blender. |