blender/tests/gtests/runner
Sybren A. Stüvel e7c1a32a78 Tests: disable ASAN when discovering tests
CMake, when it's configuring the project, runs the `blender_test` test
runner (if it exists from a previous build) to discover which tests it
contains. At this time none of the tests themselves are run, so it's not
that useful to run ASAN and have it break things when there are memory
leaks.

This commit disables ASAN by injecting `ASAN_OPTIONS="detect_leaks=0"` in
the environment variables.

It is not enough to use `set(ENV{ASAN_OPTIONS} "detect_leaks=0")` in
`tests/gtests/runner/CMakeLists.txt`, as it wouldn't be passed to the child
process.
2020-07-16 17:38:29 +02:00
..
blender_test.cc T73268: Link C/C++ unit tests into single executable 2020-07-16 12:58:49 +02:00
BlenderAddTests.cmake Tests: disable ASAN when discovering tests 2020-07-16 17:38:29 +02:00
CMakeLists.txt Tests: disable ASAN when discovering tests 2020-07-16 17:38:29 +02:00