summaryrefslogtreecommitdiff
path: root/tests/suite
diff options
context:
space:
mode:
authorAlon Bar-Lev <alon.barlev@gmail.com>2015-06-21 03:00:05 +0300
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2015-06-21 10:54:09 +0200
commit01ac68dceee7da98da368d122f0bf592589ff9dd (patch)
treef0d2ed3a049c8f1a3f384749a8fe215f7d593f55 /tests/suite
parent490f278b5b16cb0488cb56f175cef247614db4a1 (diff)
downloadgnutls-01ac68dceee7da98da368d122f0bf592589ff9dd.tar.gz
tests: enforce UTC timezone in datefudge tests
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Diffstat (limited to 'tests/suite')
-rwxr-xr-xtests/suite/testcompat-openssl2
-rwxr-xr-xtests/suite/testcompat-polarssl2
2 files changed, 4 insertions, 0 deletions
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