BIND 10 trac503, updated. 5d03cd4b844bf1288032ee9a148aef5077a167f3 [trac503] Small test cleanup

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Jan 26 11:44:50 UTC 2011


The branch, trac503 has been updated
       via  5d03cd4b844bf1288032ee9a148aef5077a167f3 (commit)
      from  c8e84e56caeb809f91c7823ae1c4e9aa30e49c57 (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 5d03cd4b844bf1288032ee9a148aef5077a167f3
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date:   Wed Jan 26 12:40:40 2011 +0100

    [trac503] Small test cleanup
    
    * Fixed a comment
    * Modified condition in MockZone to match the one in MemoryZone.

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

Summary of changes:
 src/bin/auth/tests/query_unittest.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/auth/tests/query_unittest.cc b/src/bin/auth/tests/query_unittest.cc
index d4fd4a6..6ea0ac3 100644
--- a/src/bin/auth/tests/query_unittest.cc
+++ b/src/bin/auth/tests/query_unittest.cc
@@ -166,8 +166,8 @@ MockZone::find(const Name& name, const RRType& type,
             return (FindResult(SUCCESS, found_rrset->second));
         }
 
-        // If not found but the qtype is ANY, return the first RRset
-        if (!found_domain->second.empty() && type == RRType::ANY()) {
+        // If not found but we have a target, fill it with all RRsets here
+        if (!found_domain->second.empty() && target != NULL) {
             for (found_rrset = found_domain->second.begin();
                  found_rrset != found_domain->second.end(); found_rrset++)
             {




More information about the bind10-changes mailing list