Browse Source

[2165] Disable test code that is no longer correct

This test cannot possibly work anymore due to the description
in the comment.
Mukund Sivaraman 12 years ago
parent
commit
525a74df17
1 changed files with 10 additions and 0 deletions
  1. 10 0
      src/lib/testutils/dnsmessage_test.h

+ 10 - 0
src/lib/testutils/dnsmessage_test.h

@@ -265,9 +265,19 @@ rrsetsCheck(EXPECTED_ITERATOR expected_begin, EXPECTED_ITERATOR expected_end,
                      "Expected:\n" + expected_text);
         // make sure all expected RRsets are in actual sets
         EXPECT_EQ(std::distance(expected_begin, expected_end), rrset_matched);
+
+#if (0)
+        // Disabled by #2165. The RRSIG RRsets are no longer directly
+        // stored in the Message's rrsets, so the iterator will not find
+        // them. The expected text used in many tests are flattened,
+        // where the RRSIGs are inline. In other words, RRSIGs may occur
+        // between (expected_begin, expected_end) but not between
+        // (actual_begin, actual_end).
+
         // make sure rrsets only contains expected RRsets
         EXPECT_EQ(std::distance(expected_begin, expected_end),
                   std::distance(actual_begin, actual_end));
+#endif
     }
 }