From d023a77437c49033c245f17d213d33fbc866ae74 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 15 Jun 2019 23:47:05 -0400 Subject: tests/lib/ob_rfc822_mktime.sh: Make all tests after 1970 local time --- (limited to 'tests/lib') diff --git a/tests/lib/ob_rfc822_mktime.sh b/tests/lib/ob_rfc822_mktime.sh index 8a80ff0..eb35215 100755 --- a/tests/lib/ob_rfc822_mktime.sh +++ b/tests/lib/ob_rfc822_mktime.sh @@ -23,7 +23,7 @@ set -eu . "${TOP_SRCDIR}/tests/aux/common.sh" . "${TOP_BUILDDIR}/lib/libopkbuild.${SHSOEXT}.${LIBOPKBUILD_SHSOVERSION}" -plan_ 18 +plan_ 6 tst() { @@ -34,8 +34,9 @@ tst() is "${in} = ${out}" "$(ob_rfc822_mktime "${in}")" "${out}" } -tst 'Wed, 31 Dec 1969 19:00:00 -0500' 0 -tst 'Wed, 31 Dec 1969 19:00:01 -0500' 1 tst 'Wed, 01 Jan 1970 00:00:00 +0000' 0 +tst 'Wed, 01 Jan 1970 00:00:01 +0000' 1 +tst 'Fri, 02 Jan 1970 01:02:03 -0500' 108123 +tst 'Fri, 30 Apr 1971 12:34:56 -0400' 41877296 tst 'Mon, 28 Feb 1994 19:00:00 -0500' 762480000 tst 'Fri, 01 Jul 2000 10:20:30 +0100' 962410830 -- cgit v0.9.1