diff options
author | Yuchen Wu <yuchenericwu@hotmail.com> | 2013-12-10 01:02:07 +0000 |
---|---|---|
committer | Yuchen Wu <yuchenericwu@hotmail.com> | 2013-12-10 01:02:07 +0000 |
commit | 30d5ef51e4e20d5114bd80b1ef036d91e4410ae2 (patch) | |
tree | be4749d275aac25267c25edb0161295011197565 /test/tools/llvm-cov/llvm-cov.test | |
parent | 06e68434a5fdc33de8a4b704f63c89a45eb2d699 (diff) | |
download | llvm-30d5ef51e4e20d5114bd80b1ef036d91e4410ae2.tar.gz llvm-30d5ef51e4e20d5114bd80b1ef036d91e4410ae2.tar.bz2 llvm-30d5ef51e4e20d5114bd80b1ef036d91e4410ae2.tar.xz |
llvm-cov: Added -a option for block data.
Similar to gcov, llvm-cov will now print out the block count at the end
of each block. Multiple blocks can end on the same line.
One computational difference is by using -a, llvm-cov will no longer
simply add the block counts together to form a line count. Instead, it
will take the maximum of the block counts on that line. This has a
similar effect to what gcov does, but generates more correct counts in
certain scenarios.
Also updated tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196856 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tools/llvm-cov/llvm-cov.test')
-rw-r--r-- | test/tools/llvm-cov/llvm-cov.test | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/tools/llvm-cov/llvm-cov.test b/test/tools/llvm-cov/llvm-cov.test index 184f858b8c..43725a3cbd 100644 --- a/test/tools/llvm-cov/llvm-cov.test +++ b/test/tools/llvm-cov/llvm-cov.test @@ -6,8 +6,12 @@ RUN: cd %t RUN: cp %p/Inputs/test* . RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -RUN: diff -aub test.cpp.orig_gcov test.cpp.gcov -RUN: diff -aub test.h.orig_gcov test.h.gcov +RUN: diff -aub test_no_options.cpp.gcov test.cpp.gcov +RUN: diff -aub test_no_options.h.gcov test.h.gcov + +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: not llvm-cov -gcno=test_read_fail.gcno -gcda=test.gcda |