aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ProfileData/CoverageMappingTest.cpp
diff options
context:
space:
mode:
authorZequan Wu <zequanwu@google.com>2021-03-05 13:38:12 -0800
committerZequan Wu <zequanwu@google.com>2021-03-09 14:47:32 -0800
commit8d5c3ae357b5f78a004427c39934f6881ae41544 (patch)
tree8003b574208d1a64219fc4c6a2a41428dc0ce3c7 /llvm/unittests/ProfileData/CoverageMappingTest.cpp
parent23fd647cc6b8d25076188492e6424eee60c31326 (diff)
downloadllvm-8d5c3ae357b5f78a004427c39934f6881ae41544.zip
llvm-8d5c3ae357b5f78a004427c39934f6881ae41544.tar.gz
llvm-8d5c3ae357b5f78a004427c39934f6881ae41544.tar.bz2
Revert "[llvm-cov] reset executation count to 0 after wrapped segment"
This reverts D85036 Differential Revision: https://reviews.llvm.org/D98084
Diffstat (limited to 'llvm/unittests/ProfileData/CoverageMappingTest.cpp')
-rw-r--r--llvm/unittests/ProfileData/CoverageMappingTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/ProfileData/CoverageMappingTest.cpp b/llvm/unittests/ProfileData/CoverageMappingTest.cpp
index d1bb87a..b10400b 100644
--- a/llvm/unittests/ProfileData/CoverageMappingTest.cpp
+++ b/llvm/unittests/ProfileData/CoverageMappingTest.cpp
@@ -680,7 +680,7 @@ TEST_P(CoverageMappingTest, test_line_coverage_iterator) {
CoverageData Data = LoadedCoverage->getCoverageForFile("file1");
unsigned Line = 0;
- unsigned LineCounts[] = {20, 20, 20, 20, 10, 10, 10, 10, 10, 0, 0};
+ unsigned LineCounts[] = {20, 20, 20, 20, 30, 10, 10, 10, 10, 0, 0};
for (const auto &LCS : getLineCoverageStats(Data)) {
ASSERT_EQ(Line + 1, LCS.getLine());
errs() << "Line: " << Line + 1 << ", count = " << LCS.getExecutionCount() << "\n";