From: Simon Josefsson Date: Wed, 25 Jan 2012 09:25:36 +0000 (+0100) Subject: Fix datefudge checks, for when datefudge is missing. X-Git-Tag: gnutls_3_0_13~190 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f424b845c8aa141ae15e76019657129dbdf3c95;p=thirdparty%2Fgnutls.git Fix datefudge checks, for when datefudge is missing. --- diff --git a/tests/cert-tests/template-test b/tests/cert-tests/template-test index b56b27d63c..769957b7a9 100755 --- a/tests/cert-tests/template-test +++ b/tests/cert-tests/template-test @@ -24,7 +24,7 @@ srcdir=${srcdir:-.} CERTTOOL=${CERTTOOL:-../../src/certtool$EXEEXT} # Check for datefudge -TSTAMP=`datefudge "2006-09-23" date -u +%s` +TSTAMP=`datefudge "2006-09-23" date -u +%s || true` if test "$TSTAMP" != "1158962400"; then echo "You need datefudge to run this test" exit 77 diff --git a/tests/pkcs1-padding/pkcs1-pad b/tests/pkcs1-padding/pkcs1-pad index 1b2ac81aa0..3101c7e049 100755 --- a/tests/pkcs1-padding/pkcs1-pad +++ b/tests/pkcs1-padding/pkcs1-pad @@ -21,11 +21,13 @@ # along with GnuTLS; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +set -e + srcdir=${srcdir:-.} CERTTOOL=${CERTTOOL:-../../src/certtool$EXEEXT} # Check for datefudge -TSTAMP=`datefudge "2006-09-23" date -u +%s` +TSTAMP=`datefudge "2006-09-23" date -u +%s || true` if test "$TSTAMP" != "1158962400"; then echo "You need datefudge to run this test" exit 77