diff --git a/.github/workflows/test_valgrind.yml b/.github/workflows/test_valgrind.yml index b3f893647f..9eebbf18f8 100644 --- a/.github/workflows/test_valgrind.yml +++ b/.github/workflows/test_valgrind.yml @@ -4,6 +4,7 @@ on: branches: - master - update_valgrind_supp + - fix_valgrind_tests pull_request: branches: - master diff --git a/scripts/run-valgrind-cpp.sh b/scripts/run-valgrind-cpp.sh index fd08cbda54..a96b1d90e6 100755 --- a/scripts/run-valgrind-cpp.sh +++ b/scripts/run-valgrind-cpp.sh @@ -10,4 +10,4 @@ set -eou pipefail # run tests cd "${AMICI_PATH}/build/" VALGRIND_OPTS="--leak-check=full --error-exitcode=1 --trace-children=yes --show-leak-kinds=definite" -valgrind ${VALGRIND_OPTS} ctest +CTEST_OUTPUT_ON_FAILURE=1 valgrind ${VALGRIND_OPTS} ctest