[llvm] a0749f9 - [RGT][ProfileData] Correct a test assertion

Paul Robinson via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 5 06:55:19 PST 2021


Author: Paul Robinson
Date: 2021-02-05T06:55:08-08:00
New Revision: a0749f9bcc7c67ecca9e60f8844da9532da3e828

URL: https://github.com/llvm/llvm-project/commit/a0749f9bcc7c67ecca9e60f8844da9532da3e828
DIFF: https://github.com/llvm/llvm-project/commit/a0749f9bcc7c67ecca9e60f8844da9532da3e828.diff

LOG: [RGT][ProfileData] Correct a test assertion

Found by the Rotten Green Tests project.

Differential Revision: https://reviews.llvm.org/D95258

Added: 
    

Modified: 
    llvm/unittests/ProfileData/CoverageMappingTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/ProfileData/CoverageMappingTest.cpp b/llvm/unittests/ProfileData/CoverageMappingTest.cpp
index 43386d23883e..cbe9c1e823b7 100644
--- a/llvm/unittests/ProfileData/CoverageMappingTest.cpp
+++ b/llvm/unittests/ProfileData/CoverageMappingTest.cpp
@@ -835,8 +835,7 @@ TEST_P(CoverageMappingTest, dont_detect_false_instantiations) {
 
   std::vector<InstantiationGroup> InstantiationGroups =
       LoadedCoverage->getInstantiationGroups("expanded");
-  for (const auto &Group : InstantiationGroups)
-    ASSERT_EQ(Group.size(), 1U);
+  ASSERT_TRUE(InstantiationGroups.empty());
 }
 
 TEST_P(CoverageMappingTest, load_coverage_for_expanded_file) {


        


More information about the llvm-commits mailing list