BIND 10 trac2384, updated. 4ddb739a13b02b58dca72bd301e80228c745359f [2384] Test leading zeroes in TTL
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Nov 8 17:27:17 UTC 2012
The branch, trac2384 has been updated
via 4ddb739a13b02b58dca72bd301e80228c745359f (commit)
from 46f83b66089f84aea1bcee15cce153b498184966 (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 4ddb739a13b02b58dca72bd301e80228c745359f
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Thu Nov 8 18:27:00 2012 +0100
[2384] Test leading zeroes in TTL
-----------------------------------------------------------------------
Summary of changes:
src/lib/dns/tests/rrttl_unittest.cc | 2 ++
1 file changed, 2 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/lib/dns/tests/rrttl_unittest.cc b/src/lib/dns/tests/rrttl_unittest.cc
index 03ab7a6..7fbd529 100644
--- a/src/lib/dns/tests/rrttl_unittest.cc
+++ b/src/lib/dns/tests/rrttl_unittest.cc
@@ -110,6 +110,8 @@ TEST_F(RRTTLTest, fromTextUnit) {
EXPECT_EQ(4294967295, RRTTL("4294967295S").getValue());
EXPECT_EQ(0, RRTTL("0W0D0H0M0S").getValue());
EXPECT_EQ(4294967295, RRTTL("1193046H1695S").getValue());
+ // Leading zeroes are accepted
+ EXPECT_EQ(4294967295, RRTTL("0000000000000004294967295S").getValue());
// Now some compound ones. We allow any order (it would be much work to
// check the order anyway). The last part can be without unit, in which
More information about the bind10-changes
mailing list