From: Alon Bar-Lev Date: Sun, 21 Jun 2015 00:00:05 +0000 (+0300) Subject: tests: enforce UTC timezone in datefudge tests X-Git-Tag: gnutls_3_4_3~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=01ac68dceee7da98da368d122f0bf592589ff9dd;p=thirdparty%2Fgnutls.git tests: enforce UTC timezone in datefudge tests Signed-off-by: Alon Bar-Lev --- diff --git a/tests/pkcs1-padding/pkcs1-pad b/tests/pkcs1-padding/pkcs1-pad index 65b31fd3d8..8d0861a6c6 100755 --- a/tests/pkcs1-padding/pkcs1-pad +++ b/tests/pkcs1-padding/pkcs1-pad @@ -26,9 +26,11 @@ set -e srcdir="${srcdir:-.}" CERTTOOL="${CERTTOOL:-../../src/certtool${EXEEXT}}" +export TZ="UTC" + # Check for datefudge TSTAMP=`datefudge "2006-09-23" date -u +%s || true` -if test "${TSTAMP}" != "1158962400"; then +if test "${TSTAMP}" != "1158969600"; then echo "You need datefudge to run this test" exit 77 fi diff --git a/tests/suite/testcompat-openssl b/tests/suite/testcompat-openssl index f82f00e76b..42b695d8e5 100755 --- a/tests/suite/testcompat-openssl +++ b/tests/suite/testcompat-openssl @@ -44,6 +44,8 @@ else export FIPS=0 fi +export TZ="UTC" + # Check for datefudge TSTAMP=`datefudge "2006-09-23 00:00 UTC" date -u +%s 2>/dev/null` if test "${TSTAMP}" != "1158969600"; then diff --git a/tests/suite/testcompat-polarssl b/tests/suite/testcompat-polarssl index fcaf99bb32..41dd59f710 100755 --- a/tests/suite/testcompat-polarssl +++ b/tests/suite/testcompat-polarssl @@ -32,6 +32,8 @@ srcdir="${srcdir:-.}" +export TZ="UTC" + # Check for datefudge TSTAMP=`datefudge "2006-09-23 00:00 UTC" date -u +%s 2>/dev/null` if test "${TSTAMP}" != "1158969600"; then