mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-19 17:32:37 +00:00
Yet another attempt to handle valgrind behavior.
This commit is contained in:
parent
5737b37dd4
commit
0c0f322e23
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user