diff options
-rwxr-xr-x | tests/cert-tests/krb5-test | 8 |
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} |