Browse Source

cancel some tests once a critical bug found, to avoid crash during tests

git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1177 e5f2f494-b856-4b98-b285-d166d9295462
JINMEI Tatuya 15 years ago
parent
commit
737b559304
1 changed files with 8 additions and 5 deletions
  1. 8 5
      src/lib/auth/data_source_sqlite3_unittest.cc

+ 8 - 5
src/lib/auth/data_source_sqlite3_unittest.cc

@@ -239,11 +239,14 @@ checkRRset(RRsetPtr rrset, const Name& expected_name,
 
     if (expected_sig_data != NULL) {
         RRsetPtr sig_rrset = rrset->getRRsig();
-        EXPECT_FALSE(NULL == sig_rrset);
-        // Note: we assume the TTL for RRSIG is the same as that of the
-        // RRSIG target.
-        checkRRset(sig_rrset, expected_name, expected_class, RRType::RRSIG(),
-                   expected_rrttl, *expected_sig_data, NULL);
+        EXPECT_FALSE(sig_rrset == NULL);
+        if (sig_rrset != NULL) { // check this to avoid possible bug.
+            // Note: we assume the TTL for RRSIG is the same as that of the
+            // RRSIG target.
+            checkRRset(sig_rrset, expected_name, expected_class,
+                       RRType::RRSIG(), expected_rrttl, *expected_sig_data,
+                       NULL);
+        }
     } else {
         EXPECT_TRUE(NULL == rrset->getRRsig());
     }