The current test does not trigger any memory leaks and we want to
ensure that we don't introduce any new leaks and fix existing leaks as
new tests encounter them.
We still want leak detection disabled when running pytest since those
tests still trigger many memory leaks.
This is accomplished by moving the disabling of the leak detection
into the test template and performing it after ctest has been
executed, but before pytest executes.
This commit also makes the temporary disabling of ODR violation
bacause of lib/ortho to be selectively for ctest only.
- pushd build
- ctest --output-on-failure
- popd
+ # Many of the tests run by pytest currently trigger ASan
+ # memory leak detections. Disable those for now.
+ - export ASAN_OPTIONS=detect_leaks=0
- python3 -m pytest --verbose --junitxml=report.xml ci/tests.py tests rtest
artifacts:
reports:
- export CFLAGS=" -g -fsanitize=address,undefined"
- export CXXFLAGS=" -g -fsanitize=address,undefined"
- export LDFLAGS=" -g -fsanitize=address,undefined"
- # FIXME: remove the following when Graphviz can pass the test suite
- # leak-free
- - export ASAN_OPTIONS=detect_leaks=0
- echo experimental > COLLECTION
needs:
- job: portable-source