From 0c0f322e23c211b35ab9ddd31c53882ab6c85951 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Wed, 22 Jun 2022 16:02:11 -0700 Subject: [PATCH] Yet another attempt to handle valgrind behavior. --- tests/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 20b995444..04dccd09d 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -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}"