BIND 10 trac661, updated. 7e385db1cb3baae0bcc5461c17a07062816cc5a6 [trac661] Update the comments in test data file

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Mar 11 01:12:00 UTC 2011


The branch, trac661 has been updated
       via  7e385db1cb3baae0bcc5461c17a07062816cc5a6 (commit)
      from  002aa60f46e33079f4d9bc131115a127ea5a5130 (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 7e385db1cb3baae0bcc5461c17a07062816cc5a6
Author: zhanglikun <zhanglikun at cnnic.cn>
Date:   Fri Mar 11 09:09:13 2011 +0800

    [trac661] Update the comments in test data file

-----------------------------------------------------------------------

Summary of changes:
 src/lib/cache/tests/rrset_cache_unittest.cc    |    2 +-
 src/lib/cache/tests/testdata/message_fromWire9 |    4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/cache/tests/rrset_cache_unittest.cc b/src/lib/cache/tests/rrset_cache_unittest.cc
index 90b24df..b61f5c4 100644
--- a/src/lib/cache/tests/rrset_cache_unittest.cc
+++ b/src/lib/cache/tests/rrset_cache_unittest.cc
@@ -74,7 +74,7 @@ TEST_F(RRsetCacheTest, lookup) {
     // Check whether the expired rrset entry will be removed automatically
     // when looking up.
     Name name_test("test.example.com.");
-    updateRRsetCache(cache_, name_test, 0);
+    updateRRsetCache(cache_, name_test, 0); // Add a rrset with TTL 0 to cache.
     EXPECT_FALSE(cache_.lookup(name_test, RRType::A()));
 }
 
diff --git a/src/lib/cache/tests/testdata/message_fromWire9 b/src/lib/cache/tests/testdata/message_fromWire9
index d155e8c..e2dbd06 100644
--- a/src/lib/cache/tests/testdata/message_fromWire9
+++ b/src/lib/cache/tests/testdata/message_fromWire9
@@ -1,4 +1,6 @@
 #
+# The TTL for a record in answer section is 0, so it
+# will expire immediately after being cached.
 #
 # A simple DNS response message
 # ID = 0x1035
@@ -6,7 +8,7 @@
 # QDCOUNT=1, ANCOUNT=2, other COUNTS=0
 # Question: test.example.org. IN A
 # Answer:
-#  test.example.org. 3600 IN A 192.0.2.1
+#  test.example.org. 0000 IN A 192.0.2.1
 #  test.example.org. 7200 IN A 192.0.2.2
 #
 1035 8500




More information about the bind10-changes mailing list