diff options
author | Yuchen Wu <yuchenericwu@hotmail.com> | 2013-12-03 00:57:11 +0000 |
---|---|---|
committer | Yuchen Wu <yuchenericwu@hotmail.com> | 2013-12-03 00:57:11 +0000 |
commit | 6cd7a3fa797dc9b337c60cced2321da2d65884fb (patch) | |
tree | 25fe5e83cd8c46ef4b2a473fac1617af4c0d4a69 /test/tools/llvm-cov | |
parent | eae8ef479d2c6c81b2ff19d2f721e7273642bc40 (diff) | |
download | llvm-6cd7a3fa797dc9b337c60cced2321da2d65884fb.tar.gz llvm-6cd7a3fa797dc9b337c60cced2321da2d65884fb.tar.bz2 llvm-6cd7a3fa797dc9b337c60cced2321da2d65884fb.tar.xz |
llvm-cov: Removed output to STDOUT/specified file.
Instead of asking the user to specify a single file to output coverage
info and defaulting to STDOUT, llvm-cov now creates files for each
source file with a naming system of: <source filename> + ".llcov".
This is what gcov does and although it can clutter the working directory
with numerous coverage files, it will be easier to hook the llvm-cov
output to tools which operate on this assumption (such as lcov).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196184 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tools/llvm-cov')
-rw-r--r-- | test/tools/llvm-cov/llvm-cov.test | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/tools/llvm-cov/llvm-cov.test b/test/tools/llvm-cov/llvm-cov.test index 39f112e8d2..55af86e851 100644 --- a/test/tools/llvm-cov/llvm-cov.test +++ b/test/tools/llvm-cov/llvm-cov.test @@ -2,8 +2,9 @@ RUN: cd %p/Inputs # "cd" is unsupported in lit internal runner. REQUIRES: shell -RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda \ -RUN: | diff -aub test.cpp.gcov - +RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda +RUN: diff test.cpp.gcov test.cpp.llcov +RUN: rm test.cpp.llcov RUN: not llvm-cov -gcno=test_read_fail.gcno -gcda=test.gcda |