From 027defbca16bb75a739c0dfbdba4445d9317dd3e Mon Sep 17 00:00:00 2001
From: Petter Reinholdtsen <pere@hungry.com>
Date: Tue, 18 Feb 2025 22:24:43 +0100
Subject: [PATCH] Adjust valgrind run to fail tests if valgrind report errors.

---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 91a2a5a..dcb24cc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -63,7 +63,7 @@ then
   AC_PATH_PROG(VALGRIND,valgrind,)
   if test "x$VALGRIND" != "x"
   then
-    VALGRIND="$VALGRIND -q --leak-check=full --show-reachable=yes --num-callers=50"
+    VALGRIND="$VALGRIND -q --error-exitcode=99 --leak-check=full --show-reachable=yes --num-callers=50"
     TESTS_INFO="Test suite will be run under:
     ${VALGRIND}"
   else
-- 
GitLab