Yet another attempt to handle valgrind behavior.

This commit is contained in:
Ralf W. Grosse-Kunstleve 2022-06-22 16:02:11 -07:00
parent 5737b37dd4
commit 0c0f322e23

View File

@ -535,7 +535,7 @@ endif()
add_custom_target(
memcheck
COMMAND
-E env PYBIND11_TESTING_WITH_VALGRIND=1 PYTHONMALLOC=malloc
PYTHONMALLOC=malloc
valgrind
--leak-check=full
--show-leak-kinds=definite,indirect
@ -546,6 +546,7 @@ add_custom_target(
--suppressions="${CMAKE_CURRENT_SOURCE_DIR}/valgrind-python.supp"
--suppressions="${CMAKE_CURRENT_SOURCE_DIR}/valgrind-numpy-scipy.supp"
--gen-suppressions=all
env PYBIND11_TESTING_WITH_VALGRIND=1
${PYTHON_EXECUTABLE} -m pytest ${PYBIND11_ABS_PYTEST_FILES}
DEPENDS ${test_targets}
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"