Browse Source

[2503] Check result of findNSEC3()

Mukund Sivaraman 12 years ago
parent
commit
c4b7c85d1a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/lib/datasrc/tests/memory/zone_finder_unittest.cc

+ 4 - 0
src/lib/datasrc/tests/memory/zone_finder_unittest.cc

@@ -1585,6 +1585,10 @@ TEST_F(InMemoryZoneFinderNSEC3Test, findNSEC3MissingOrigin) {
      Name search_name("nonexist.ok.ok.ok.ok.nsec3.tjeb.nl.");
      Name search_name("nonexist.ok.ok.ok.ok.nsec3.tjeb.nl.");
      ZoneFinder::FindNSEC3Result find_result(
      ZoneFinder::FindNSEC3Result find_result(
           result.zone_finder->findNSEC3(search_name, true));
           result.zone_finder->findNSEC3(search_name, true));
+     // findNSEC3() must have completed (not throw or assert). Because
+     // the find was recursive, it always must find something and return
+     // true.
+     EXPECT_TRUE(find_result.matched);
 }
 }
 
 
 }
 }