]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Fix datefudge checks, for when datefudge is missing.
authorSimon Josefsson <simon@josefsson.org>
Wed, 25 Jan 2012 09:25:36 +0000 (10:25 +0100)
committerSimon Josefsson <simon@josefsson.org>
Wed, 25 Jan 2012 09:25:36 +0000 (10:25 +0100)
tests/cert-tests/template-test
tests/pkcs1-padding/pkcs1-pad

index b56b27d63c619a2eec2d6e2dddc33aa6db1e7454..769957b7a90e091841eaef261f34f2408c611dc5 100755 (executable)
@@ -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
index 1b2ac81aa001abb5b28860c32755b33dd98acabf..3101c7e04976ea63d1e5277fb9a706a5585b7b26 100755 (executable)
 # 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