Parcourir la source

[2432] Use ASSERT_TRUE to not crash test suite in some places

Mukund Sivaraman il y a 12 ans
Parent
commit
004823862f
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/lib/dns/tests/rrset_collection_unittest.cc

+ 2 - 2
src/lib/dns/tests/rrset_collection_unittest.cc

@@ -47,12 +47,12 @@ TEST_F(RRsetCollectionTest, istreamConstructor) {
     RRsetCollectionBase::Iterator iter = collection.begin();
     RRsetCollectionBase::Iterator iter2 = collection2.begin();
     while (iter != collection.end()) {
-         EXPECT_TRUE(iter2 != collection2.end());
+         ASSERT_TRUE(iter2 != collection2.end());
          EXPECT_EQ((*iter).toText(), (*iter2).toText());
          ++iter;
          ++iter2;
     }
-    EXPECT_TRUE(iter2 == collection2.end());
+    ASSERT_TRUE(iter2 == collection2.end());
 }
 
 template <typename T, typename TP>