From 75dd10693b6ced4f4d55ce6f374807e306de5783 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 02 Jan 2021 13:25:41 -0500 Subject: 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. --- (limited to 'tests/lib') 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' -- cgit v0.9.1