summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-cov/showLineExecutionCounts.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2017-09-19 02:00:12 +0000
committerVedant Kumar <vsk@apple.com>2017-09-19 02:00:12 +0000
commitb7fdaf2cd403e99f3079efafc1793e3e7868a245 (patch)
tree3c7d9aba6a9b0731755dd7da5e049d60cef46e14 /llvm/test/tools/llvm-cov/showLineExecutionCounts.cpp
parentef8e05ff07e3ff6b7d9aedb615b12a2ed61b9d01 (diff)
downloadbcm5719-llvm-b7fdaf2cd403e99f3079efafc1793e3e7868a245.tar.gz
bcm5719-llvm-b7fdaf2cd403e99f3079efafc1793e3e7868a245.zip
[llvm-cov] Make report metrics agree with line exec counts, fixes PR34615
Use the same logic as the line-oriented coverage view to determine the number of covered lines in a function. Fixes llvm.org/PR34615. llvm-svn: 313604
Diffstat (limited to 'llvm/test/tools/llvm-cov/showLineExecutionCounts.cpp')
-rw-r--r--llvm/test/tools/llvm-cov/showLineExecutionCounts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/tools/llvm-cov/showLineExecutionCounts.cpp b/llvm/test/tools/llvm-cov/showLineExecutionCounts.cpp
index 39d31d20dd1..ba974dc4db5 100644
--- a/llvm/test/tools/llvm-cov/showLineExecutionCounts.cpp
+++ b/llvm/test/tools/llvm-cov/showLineExecutionCounts.cpp
@@ -86,7 +86,7 @@ int main() { // TEXT: [[@LINE]]| 161|int main(
// HTML-INDEX: <td class='column-entry-green'>
// HTML-INDEX: 100.00% (1/1)
// HTML-INDEX: <td class='column-entry-yellow'>
-// HTML-INDEX: 80.00% (16/20)
+// HTML-INDEX: 90.00% (18/20)
// HTML-INDEX: <td class='column-entry-red'>
// HTML-INDEX: 72.73% (8/11)
// HTML-INDEX: TOTALS
OpenPOWER on IntegriCloud