summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2021-01-02 13:25:41 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2021-01-02 14:55:36 (EST)
commit75dd10693b6ced4f4d55ce6f374807e306de5783 (patch)
tree80106808c05e4ef23c72aa26746e09ffb5233c10 /tests
parentda66db89bd5c26c6731b77e3f8616e660529812d (diff)
ob_*_gmtime(): Don't freeze on New Year's Day
And add test cases to confirm the resolution of this bug and the one fixed by commit 83bee70f80d8c98b875c943297b0049eae7d6d22.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/lib/ob_iso8601_gmtime.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/lib/ob_iso8601_gmtime.sh b/tests/lib/ob_iso8601_gmtime.sh
index 840b378..d318961 100755
--- a/tests/lib/ob_iso8601_gmtime.sh
+++ b/tests/lib/ob_iso8601_gmtime.sh
@@ -23,7 +23,7 @@ set -eu
. "${TOP_SRCDIR}/tests/aux/common.sh"
. "${TOP_BUILDDIR}/lib/libopkbuild.${SHSOEXT}.${LIBOPKBUILD_SHSOVERSION}"
-plan_ 7
+plan_ 10
tst()
{
@@ -40,4 +40,7 @@ tst 108123 '1970-01-02T06:02:03Z'
tst 41877296 '1971-04-30T16:34:56Z'
tst 762480000 '1994-03-01T00:00:00Z'
tst 962443230 '2000-07-01T09:20:30Z'
+tst 1607419408 '2020-12-08T09:23:28Z'
+tst 1609459199 '2020-12-31T23:59:59Z'
+tst 1609510819 '2021-01-01T14:20:19Z'
tst 2147483648 '2038-01-19T03:14:08Z'