]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2750] Test the passed set instead of the tree (true at the end of the unittest)
authorMukund Sivaraman <muks@isc.org>
Wed, 4 Sep 2013 04:10:06 +0000 (09:40 +0530)
committerMukund Sivaraman <muks@isc.org>
Wed, 4 Sep 2013 04:10:12 +0000 (09:40 +0530)
src/lib/datasrc/tests/memory/domaintree_unittest.cc

index d678af25f1be6851fa0f3bfa7a2146d7cfcccdaf..c2b600356339af80df5bfffd1c44ad7612b71d68 100644 (file)
@@ -532,8 +532,9 @@ checkTree(const TestDomainTree& tree,
 
     // Skip to the next node after "."
     cnode = tree.nextNode(node_path);
-    if (!cnode) {
+    if (names.empty()) {
         // Empty tree.
+        EXPECT_EQ(static_cast<void*>(NULL), cnode);
         return;
     }