Bypass valgrind checks on ARM by default due to false positives.

This commit is contained in:
Andrew Wood
2025-01-11 20:57:26 +00:00
parent 42e47e8291
commit c8ad7eb0e2
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -1,6 +1,7 @@
### UNRELEASED
* *fix:* turn off IPC support if _sys/shm.h_ is not available, for compilation on Termux
* *fix:* bypass valgrind checks on ARM by default due to false positives
### 1.9.25 - 22 December 2024
+7
View File
@@ -35,6 +35,13 @@ if test "${SKIP_VALGRIND_TESTS}" = "1"; then
exit 77
fi
if command -v arch >/dev/null 2>&1 && arch | grep -Fq -e arm -e aarch; then
if ! test "${ENABLE_VALGRIND_ARM}" = "1"; then
echo "skipping valgrind on ARM without ENABLE_VALGRIND_ARM"
exit 77
fi
fi
valgrindHelp="$(valgrind --help 2>&1)"
for valgrindOption in "verbose" "show-error-list" "error-exitcode" "track-fds" "leak-check"; do
echo "${valgrindHelp}" | grep -Fq "${valgrindOption}" || { echo "test requires \`valgrind --${valgrindOption}'"; exit 77; }