diff options
author | Paul Robinson <paul.robinson@sony.com> | 2021-01-15 08:40:47 -0800 |
---|---|---|
committer | Paul Robinson <paul.robinson@sony.com> | 2021-02-05 06:55:08 -0800 |
commit | a0749f9bcc7c67ecca9e60f8844da9532da3e828 (patch) | |
tree | 7f333d11ae674362fc3ca3b474fcc9e069458f2c /llvm/unittests/ProfileData/CoverageMappingTest.cpp | |
parent | 42e018997b23af74eee4acdc0388ae44b36d69f9 (diff) | |
download | llvm-a0749f9bcc7c67ecca9e60f8844da9532da3e828.zip llvm-a0749f9bcc7c67ecca9e60f8844da9532da3e828.tar.gz llvm-a0749f9bcc7c67ecca9e60f8844da9532da3e828.tar.bz2 |
[RGT][ProfileData] Correct a test assertion
Found by the Rotten Green Tests project.
Differential Revision: https://reviews.llvm.org/D95258
Diffstat (limited to 'llvm/unittests/ProfileData/CoverageMappingTest.cpp')
-rw-r--r-- | llvm/unittests/ProfileData/CoverageMappingTest.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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<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) { |