check_for_datefudge() {
# On certain platforms running datefudge date fails (e.g., x86 datefudge
# with x86-64 date app).
- if test "${SKIP_DATEFUDGE_CHECK}" = 1 || test -z "${top_builddir}";then
+ if test "${SKIP_DATEFUDGE_CHECK}" = 1;then
return
fi
- TSTAMP=`datefudge -s "2006-09-23" "${top_builddir}/tests/datefudge-check"`
+ TSTAMP=`datefudge -s "2006-09-23" "${top_builddir}/tests/datefudge-check" || true`
if test "$TSTAMP" != "1158969600" || test "$WINDOWS" = 1; then
- echo "timestamp: ${TSTAMP}"
+ echo $TSTAMP
echo "You need datefudge to run this test"
exit 77
fi