summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-06-29 17:25:06 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-06-29 17:25:11 +0200
commitcc22a052f40ba800acde7d81fe0ab91b56e66921 (patch)
treef1162db4a377b6e2ccdbad328e5cec67e2a07ac4
parentd8f20ee1979d9ed41fc7272c5a97755c7f2b4356 (diff)
downloadgnutls-cc22a052f40ba800acde7d81fe0ab91b56e66921.tar.gz
tests: use datefudge in name-constraints test
This avoids the expiration of the used certificate to affect the test.
-rwxr-xr-xtests/cert-tests/name-constraints7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/cert-tests/name-constraints b/tests/cert-tests/name-constraints
index c818f59f6d..9645879a5c 100755
--- a/tests/cert-tests/name-constraints
+++ b/tests/cert-tests/name-constraints
@@ -28,7 +28,12 @@ if ! test -z "${VALGRIND}"; then
fi
TMPFILE=tmp.$$.pem
-${VALGRIND} "${CERTTOOL}" -e --infile "${srcdir}/data/name-constraints-ip.pem"
+. ${srcdir}/../scripts/common.sh
+
+check_for_datefudge
+
+datefudge -s "2016-04-22" \
+ ${VALGRIND} "${CERTTOOL}" -e --infile "${srcdir}/data/name-constraints-ip.pem"
rc=$?
if test "${rc}" != "0"; then