[PATCH] D95258: [RGT][ProfileData] Correct a test assertion
Paul Robinson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 22 12:13:40 PST 2021
probinson created this revision.
probinson added a reviewer: vsk.
probinson requested review of this revision.
Herald added a project: LLVM.
Found by the Rotten Green Tests project.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D95258
Files:
llvm/unittests/ProfileData/CoverageMappingTest.cpp
Index: llvm/unittests/ProfileData/CoverageMappingTest.cpp
===================================================================
--- llvm/unittests/ProfileData/CoverageMappingTest.cpp
+++ llvm/unittests/ProfileData/CoverageMappingTest.cpp
@@ -835,8 +835,7 @@
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) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95258.318604.patch
Type: text/x-patch
Size: 571 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210122/55db3e11/attachment.bin>
More information about the llvm-commits
mailing list