From 97fc6a10a4dd0e8e45d44a04bd5e547027a690f2 Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Sat, 30 Nov 2024 22:26:20 +0000 Subject: [PATCH] Work around issues with valgrind 3.23.0 treating inherited open file descriptors as an error with --track-fds=yes (#97). --- tests/run-valgrind.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/run-valgrind.sh b/tests/run-valgrind.sh index d181f1e..4f1ba6b 100755 --- a/tests/run-valgrind.sh +++ b/tests/run-valgrind.sh @@ -36,13 +36,15 @@ done runWithValgrind () { + true > "${workFile4}" valgrind --tool=memcheck \ - --verbose --show-error-list=yes --log-fd=3 \ + --verbose --show-error-list=yes \ + --log-file="${workFile4}" \ --error-exitcode=125 \ --track-fds=yes \ --leak-check=full \ "${testSubject}" "$@" \ - 3>"${workFile4}" 4<&- + 4<&- 9<&- returnValue=$?