Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/python/CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/python/CMakeLists.txt b/tests/python/CMakeLists.txt
index 7bfc1154ed4..9ff44ac8fe9 100644
--- a/tests/python/CMakeLists.txt
+++ b/tests/python/CMakeLists.txt
@@ -43,7 +43,9 @@ function(add_blender_test testname)
# Don't fail tests on leaks since these often happen in external libraries
# that we can't fix.
- set_tests_properties(${testname} PROPERTIES ENVIRONMENT LSAN_OPTIONS=exitcode=0)
+ set_tests_properties(${testname} PROPERTIES ENVIRONMENT
+ LSAN_OPTIONS=exitcode=0:$ENV{LSAN_OPTIONS}
+ )
endfunction()
# Run Python script outside Blender.
@@ -56,7 +58,9 @@ function(add_python_test testname testscript)
NAME ${testname}
COMMAND ${TEST_PYTHON_EXE} ${testscript} ${ARGN}
)
- set_tests_properties(${testname} PROPERTIES ENVIRONMENT LSAN_OPTIONS=exitcode=0)
+ set_tests_properties(${testname} PROPERTIES ENVIRONMENT
+ LSAN_OPTIONS=exitcode=0:$ENV{LSAN_OPTIONS}
+ )
endfunction()
# ------------------------------------------------------------------------------