summaryrefslogtreecommitdiff
path: root/tests/cert-tests/krb5-test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cert-tests/krb5-test')
-rwxr-xr-xtests/cert-tests/krb5-test8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/cert-tests/krb5-test b/tests/cert-tests/krb5-test
index a331acbb4f..3eca7d7e31 100755
--- a/tests/cert-tests/krb5-test
+++ b/tests/cert-tests/krb5-test
@@ -37,6 +37,7 @@ export TZ="UTC"
check_for_datefudge
if ! test -z "${VALGRIND}"; then
+ ORIG_VALGRIND=${VALGRIND}
VALGRIND="${LIBTOOL:-libtool} --mode=execute ${VALGRIND} --error-exitcode=3"
fi
@@ -59,6 +60,13 @@ if test "${rc}" != "0"; then
exit ${rc}
fi
+# disable all parameters to valgrind, to prevent memleak checking on
+# the following tests (negative tests which have leaks in the tools).
+if ! test -z "${ORIG_VALGRIND}"; then
+ VALGRIND=$(echo ${ORIG_VALGRIND}|cut -d ' ' -f 1)
+ VALGRIND="${LIBTOOL:-libtool} --mode=execute ${VALGRIND} --error-exitcode=3"
+fi
+
# Negative tests. Check against values which may cause problems
cp "${srcdir}/templates/template-krb5name.tmpl" ${TMPLFILE}
echo "krb5_principal = 'xxxxxxxxxxxxxx'" >>${TMPLFILE}