Work around issues with valgrind 3.23.0 treating inherited open file descriptors as an error with --track-fds=yes (#97).

This commit is contained in:
Andrew Wood
2024-11-30 22:26:20 +00:00
parent d0218bfe54
commit 97fc6a10a4
+4 -2
View File
@@ -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=$?