Blender Git Commit Log

Git Commits -> Revision e7c1a32

Revision e7c1a32 by Sybren A. Stüvel (master)
July 16, 2020, 15:38 (GMT)
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.

Commit Details:

Full Hash: e7c1a32a7806977beb74f5d20c965949162b12b5
Parent Commit: a138bf5
Lines Changed: +8, -0

1 Added Path:

/tests/gtests/runner/BlenderAddTests.cmake (+3, -0) (View)

1 Modified Path:

/tests/gtests/runner/CMakeLists.txt (+5, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021