summaryrefslogtreecommitdiff
path: root/gl
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-01-02 15:07:48 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-01-02 16:07:56 +0100
commit0e50a929b84d0f5295421111dac5c9183c1de759 (patch)
tree2b2ab6f95fde3008fbb48644153b00d0f9087fe8 /gl
parentab4c94c696e261f09e3290ac6dad107b7cfffcf6 (diff)
downloadgnutls-0e50a929b84d0f5295421111dac5c9183c1de759.tar.gz
valgrind: use different exit code to signify error
This allows the test suite to differentiate between valgrind and expected errors from tools.
Diffstat (limited to 'gl')
-rw-r--r--gl/m4/valgrind-tests.m42
-rw-r--r--gl/override/m4/valgrind-tests.m4.diff2
2 files changed, 2 insertions, 2 deletions
diff --git a/gl/m4/valgrind-tests.m4 b/gl/m4/valgrind-tests.m4
index b80bda60bc..2abae39a37 100644
--- a/gl/m4/valgrind-tests.m4
+++ b/gl/m4/valgrind-tests.m4
@@ -21,7 +21,7 @@ AC_DEFUN([gl_VALGRIND_TESTS],
AC_CHECK_PROGS(VALGRIND, valgrind)
fi
- OPTS="-q --error-exitcode=1 --leak-check=full --suppressions=suppressions.valgrind"
+ OPTS="-q --error-exitcode=6 --leak-check=full --suppressions=suppressions.valgrind"
if test -n "$VALGRIND" \
&& $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
diff --git a/gl/override/m4/valgrind-tests.m4.diff b/gl/override/m4/valgrind-tests.m4.diff
index 1393d5d045..c836d67408 100644
--- a/gl/override/m4/valgrind-tests.m4.diff
+++ b/gl/override/m4/valgrind-tests.m4.diff
@@ -5,7 +5,7 @@
fi
- OPTS="-q --error-exitcode=1 --leak-check=full"
-+ OPTS="-q --error-exitcode=1 --leak-check=full --suppressions=suppressions.valgrind"
++ OPTS="-q --error-exitcode=6 --leak-check=full --suppressions=suppressions.valgrind"
if test -n "$VALGRIND" \
&& $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then