[svn] commit: r1177 - /trunk/src/lib/auth/data_source_sqlite3_unittest.cc

BIND 10 source code commits bind10-changes at lists.isc.org
Sun Mar 7 06:33:31 UTC 2010


Author: jinmei
Date: Sun Mar  7 06:33:30 2010
New Revision: 1177

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

Modified:
    trunk/src/lib/auth/data_source_sqlite3_unittest.cc

Modified: trunk/src/lib/auth/data_source_sqlite3_unittest.cc
==============================================================================
--- trunk/src/lib/auth/data_source_sqlite3_unittest.cc (original)
+++ trunk/src/lib/auth/data_source_sqlite3_unittest.cc Sun Mar  7 06:33:30 2010
@@ -239,11 +239,14 @@
 
     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());
     }




More information about the bind10-changes mailing list