From 256c412b316755a9d6c0ad94b3e3139b27a27476 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 2 Aug 2019 16:09:59 +0200 Subject: Tests: also don't fail on memory leaks for gtests --- build_files/cmake/Modules/GTestTesting.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'build_files') diff --git a/build_files/cmake/Modules/GTestTesting.cmake b/build_files/cmake/Modules/GTestTesting.cmake index eb06e00bf9e..47edbdf37a6 100644 --- a/build_files/cmake/Modules/GTestTesting.cmake +++ b/build_files/cmake/Modules/GTestTesting.cmake @@ -50,6 +50,10 @@ macro(BLENDER_SRC_GTEST_EX NAME SRC EXTRA_LIBS DO_ADD_TEST) INCLUDE_DIRECTORIES "${TEST_INC}") if(${DO_ADD_TEST}) add_test(NAME ${NAME}_test COMMAND ${TESTS_OUTPUT_DIR}/${NAME}_test WORKING_DIRECTORY $) + + # Don't fail tests on leaks since these often happen in external libraries + # that we can't fix. + set_tests_properties(${NAME}_test PROPERTIES ENVIRONMENT LSAN_OPTIONS=exitcode=0) endif() endif() endmacro() -- cgit v1.2.3