git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac451@4044 e5f2f494-b856-4b98-b285-d166d9295462
@@ -295,6 +295,10 @@ TEST_F(MemoryZoneTest, load) {
// But this should no longer be here
findTest(ns_name_, RRType::AAAA(), Zone::NXDOMAIN, true, ConstRRsetPtr(),
&rootzone);
+
+ // Try loading zone that is wrong in a different way
+ EXPECT_THROW(zone_.load(TEST_DATA_DIR "/duplicate_rrset.zone"),
+ MasterLoadError);
}
@@ -0,0 +1,4 @@
+example.org. 3600 IN SOA ns1.example.org. admin.example.org. 1234 3600 1800 2419200 7200
+example.org. 3600 IN NS ns1.example.org.
+example.org. 3600 IN MX 10 mail.example.org.
+example.org. 3600 IN NS ns2.example.org.