summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-cov/llvm-cov.test
diff options
context:
space:
mode:
authorYuchen Wu <yuchenericwu@hotmail.com>2013-12-03 00:57:11 +0000
committerYuchen Wu <yuchenericwu@hotmail.com>2013-12-03 00:57:11 +0000
commit26326ad39694f0a35a2cdba8fe0d06abbedc3923 (patch)
tree901789034ec0f1ce3a394982df9d6d5d135ed553 /llvm/test/tools/llvm-cov/llvm-cov.test
parent65bbcdfa57dd926331225955fc8905f9a1ec2db5 (diff)
downloadbcm5719-llvm-26326ad39694f0a35a2cdba8fe0d06abbedc3923.tar.gz
bcm5719-llvm-26326ad39694f0a35a2cdba8fe0d06abbedc3923.zip
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). llvm-svn: 196184
Diffstat (limited to 'llvm/test/tools/llvm-cov/llvm-cov.test')
-rw-r--r--llvm/test/tools/llvm-cov/llvm-cov.test5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/test/tools/llvm-cov/llvm-cov.test b/llvm/test/tools/llvm-cov/llvm-cov.test
index 39f112e8d29..55af86e8512 100644
--- a/llvm/test/tools/llvm-cov/llvm-cov.test
+++ b/llvm/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
OpenPOWER on IntegriCloud