summaryrefslogtreecommitdiff
path: root/test/tools/llvm-cov/llvm-cov.test
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-05-07 02:11:18 +0000
committerJustin Bogner <mail@justinbogner.com>2014-05-07 02:11:18 +0000
commit56d05e468cdfd4ad195f264974f1b841bc4ca785 (patch)
tree6b64409c6ba060df470fa71f1a73f671869d32e3 /test/tools/llvm-cov/llvm-cov.test
parent6d46f2d3941474d5db59c0dc4e85779ca1af3376 (diff)
downloadllvm-56d05e468cdfd4ad195f264974f1b841bc4ca785.tar.gz
llvm-56d05e468cdfd4ad195f264974f1b841bc4ca785.tar.bz2
llvm-56d05e468cdfd4ad195f264974f1b841bc4ca785.tar.xz
llvm-cov: Implement --no-output
In gcov, there's a -n/--no-output option, which disables the writing of any .gcov files, so that it emits only the summary info on stdout. This implements the same behaviour in llvm-cov. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208148 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tools/llvm-cov/llvm-cov.test')
-rw-r--r--test/tools/llvm-cov/llvm-cov.test3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/tools/llvm-cov/llvm-cov.test b/test/tools/llvm-cov/llvm-cov.test
index 8457aef292..8f57d9a189 100644
--- a/test/tools/llvm-cov/llvm-cov.test
+++ b/test/tools/llvm-cov/llvm-cov.test
@@ -31,6 +31,9 @@ RUN: llvm-cov -o objdir/test test.c | diff -u test_no_options.output -
RUN: diff -aub test_objdir.cpp.gcov test.cpp.gcov
RUN: diff -aub test_objdir.h.gcov test.h.gcov
+# With gcov output disabled
+RUN: llvm-cov -n test.c | diff -u test_no_output.output -
+
# Preserve paths. This mangles the output filenames.
RUN: mkdir -p %t/srcdir/nested_dir
RUN: cp test.cpp test.h %t/srcdir