From: Mukund Sivaraman Date: Wed, 4 Sep 2013 04:10:06 +0000 (+0530) Subject: [2750] Test the passed set instead of the tree (true at the end of the unittest) X-Git-Tag: bind10-1.2.0beta1-release~193^2~4^2~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=663bc38be6ba6371ac5d2c0e4e2db845fd384037;p=thirdparty%2Fkea.git [2750] Test the passed set instead of the tree (true at the end of the unittest) --- diff --git a/src/lib/datasrc/tests/memory/domaintree_unittest.cc b/src/lib/datasrc/tests/memory/domaintree_unittest.cc index d678af25f1..c2b6003563 100644 --- a/src/lib/datasrc/tests/memory/domaintree_unittest.cc +++ b/src/lib/datasrc/tests/memory/domaintree_unittest.cc @@ -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(NULL), cnode); return; }