diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-07-16 18:22:58 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-07-16 18:38:29 +0300 |
commit | e7c1a32a7806977beb74f5d20c965949162b12b5 (patch) | |
tree | 885539e3820222bfbba42c05ee34f1700164b798 /extern | |
parent | a138bf57c994509c9dbd1ea79a6886c24cd5d0d9 (diff) |
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.
Diffstat (limited to 'extern')
0 files changed, 0 insertions, 0 deletions