summaryrefslogtreecommitdiff
path: root/test/tools/llvm-cov/llvm-cov.test
diff options
context:
space:
mode:
authorYuchen Wu <yuchenericwu@hotmail.com>2013-12-13 01:15:07 +0000
committerYuchen Wu <yuchenericwu@hotmail.com>2013-12-13 01:15:07 +0000
commita2639798a8546537dc7cdd3bf21e4c179243e941 (patch)
treed966257316594e18fada31fca25eca8f8c27bdda /test/tools/llvm-cov/llvm-cov.test
parentf4597a0cd46ca119ca955237b847a990b1be9358 (diff)
downloadllvm-a2639798a8546537dc7cdd3bf21e4c179243e941.tar.gz
llvm-a2639798a8546537dc7cdd3bf21e4c179243e941.tar.bz2
llvm-a2639798a8546537dc7cdd3bf21e4c179243e941.tar.xz
llvm-cov: Added -b option for branch probabilities.
This option tells llvm-cov to print out branch probabilities when a basic block contains multiple branches. It also prints out some function summary info including the number of times the function enters, the percent of time it returns, and how many blocks were executed. Also updated tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197198 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tools/llvm-cov/llvm-cov.test')
-rw-r--r--test/tools/llvm-cov/llvm-cov.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/tools/llvm-cov/llvm-cov.test b/test/tools/llvm-cov/llvm-cov.test
index 43725a3cbd..bf0fb07631 100644
--- a/test/tools/llvm-cov/llvm-cov.test
+++ b/test/tools/llvm-cov/llvm-cov.test
@@ -13,6 +13,10 @@ RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a
RUN: diff -aub test_-a.cpp.gcov test.cpp.gcov
RUN: diff -aub test_-a.h.gcov test.h.gcov
+RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a -b
+RUN: diff -aub test_-a_-b.cpp.gcov test.cpp.gcov
+RUN: diff -aub test_-a_-b.h.gcov test.h.gcov
+
RUN: not llvm-cov -gcno=test_read_fail.gcno -gcda=test.gcda
RUN: not llvm-cov -gcno=test.gcno -gcda=test_file_checksum_fail.gcda