From a0749f9bcc7c67ecca9e60f8844da9532da3e828 Mon Sep 17 00:00:00 2001 From: Paul Robinson Date: Fri, 15 Jan 2021 08:40:47 -0800 Subject: [RGT][ProfileData] Correct a test assertion Found by the Rotten Green Tests project. Differential Revision: https://reviews.llvm.org/D95258 --- llvm/unittests/ProfileData/CoverageMappingTest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/unittests/ProfileData/CoverageMappingTest.cpp') diff --git a/llvm/unittests/ProfileData/CoverageMappingTest.cpp b/llvm/unittests/ProfileData/CoverageMappingTest.cpp index 43386d2..cbe9c1e 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 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) { -- cgit v1.1