summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2022-03-29 19:08:36 (EDT)
committer P. J. McDermott <pj@pehjota.net>2022-03-29 19:08:36 (EDT)
commit5d52752e0cb715a1af4095c890dc623ce369f1ac (patch)
tree8fba921b3e5deba004f73e7f480c615431ab32cd /tests
parent182d541fd660642544d66f122c61c7342ba89c21 (diff)
downloadatsign-5d52752e0cb715a1af4095c890dc623ce369f1ac.zip
atsign-5d52752e0cb715a1af4095c890dc623ce369f1ac.tar.gz
atsign-5d52752e0cb715a1af4095c890dc623ce369f1ac.tar.bz2
main: If debugging, print formatted time
Not seconds since Epoch.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/parse.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/parse.sh b/tests/parse.sh
index 1150f28..a3b1f26 100755
--- a/tests/parse.sh
+++ b/tests/parse.sh
@@ -51,13 +51,13 @@ run_test()
got="$(TZ=UTC0 "${TOP_BUILDDIR}/@" -d '1969-12-31 23:59:30' \
"${datetime}" 2>&1)" || :
- if [ x"${got}" = x'0' ]; then
+ if [ x"${got}" = x'1970-01-01 00:00:00' ]; then
ok_ -- "${datetime}"
else
not_ok_ -- "${datetime}"
diag_ " Failed test '${datetime}'"
diag_ " got: '${got}'"
- diag_ " expected: '0'"
+ diag_ " expected: '1970-01-01 00:00:00'"
fi
}