BIND 10 trac61, updated. bd8392ffd8873367f243121cf1e33eb7981b4f4d [trac61] a bit more cleanup for tests. made it more robust for y2038 prob.
BIND 10 source code commits
bind10-changes at lists.isc.org
Sat Feb 19 01:21:23 UTC 2011
The branch, trac61 has been updated
via bd8392ffd8873367f243121cf1e33eb7981b4f4d (commit)
from f8f81b7f1512760cb72592a79d2f49999f11be2c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit bd8392ffd8873367f243121cf1e33eb7981b4f4d
Author: JINMEI Tatuya <jinmei at isc.org>
Date: Fri Feb 18 17:20:45 2011 -0800
[trac61] a bit more cleanup for tests. made it more robust for y2038 prob.
-----------------------------------------------------------------------
Summary of changes:
src/lib/dns/tests/dnssectime_unittest.cc | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/dns/tests/dnssectime_unittest.cc b/src/lib/dns/tests/dnssectime_unittest.cc
index 188c350..278f88b 100644
--- a/src/lib/dns/tests/dnssectime_unittest.cc
+++ b/src/lib/dns/tests/dnssectime_unittest.cc
@@ -107,14 +107,16 @@ testGetTime() {
const uint64_t YEAR10K_EVE = 253402300799LL;
TEST_F(DNSSECTimeTest, toText) {
+ // Check a basic case with the default (normal) gettimeFunction
+ // based on the "real current time".
+ // Note: this will fail after year 2078, but at that point we won't use
+ // this program anyway:-)
+ EXPECT_EQ("20100311233000", timeToText32(1268350200));
+
// Set the current time to: Feb 18 09:04:14 UTC 2012 (an arbitrary choice
// in the range of the first half of uint32 since epoch).
dnssectime::detail::gettimeFunction = testGetTime<1329555854LL>;
- // Check some basic cases
- EXPECT_EQ("19700101000000", timeToText32(0));
- EXPECT_EQ("20100311233000", timeToText32(1268350200));
-
// Test the "year 2038" problem.
// Check the result of toText() for "INT_MIN" in int32_t. It's in the
// 68-year range from the faked current time, so the result should be
More information about the bind10-changes
mailing list