diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-02-04 06:41:39 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-02-04 06:41:39 +0000 |
commit | 93d1edbb7d2cf8fcbf00490e330b886018c8c267 (patch) | |
tree | ad3fd62cb493e3f5beb51fd7ad51cca14f35e69a /llvm/test/tools/llvm-cov/llvm-cov.test | |
parent | b5bff69ac6168b6e6bfb65fe31e9aeec2b327c15 (diff) | |
download | bcm5719-llvm-93d1edbb7d2cf8fcbf00490e330b886018c8c267.tar.gz bcm5719-llvm-93d1edbb7d2cf8fcbf00490e330b886018c8c267.zip |
llvm-cov: Ignore missing .gcda files
When gcov is run without gcda data, it acts as if the counts are all
zero and labels the file as - to indicate that there was no data. We
should do the same.
llvm-svn: 200740
Diffstat (limited to 'llvm/test/tools/llvm-cov/llvm-cov.test')
-rw-r--r-- | llvm/test/tools/llvm-cov/llvm-cov.test | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-cov/llvm-cov.test b/llvm/test/tools/llvm-cov/llvm-cov.test index cb0c99b7470..f205cde7911 100644 --- a/llvm/test/tools/llvm-cov/llvm-cov.test +++ b/llvm/test/tools/llvm-cov/llvm-cov.test @@ -48,6 +48,11 @@ RUN: llvm-cov test.c -a -b -c -u | diff -u test_-b.output - RUN: diff -aub test_-a_-b_-c_-u.cpp.gcov test.cpp.gcov RUN: diff -aub test_-a_-b_-c_-u.h.gcov test.h.gcov +# Missing gcda file just gives 0 counts. +RUN: llvm-cov test.c -gcda=no_such_gcda_file | diff -u test_no_gcda.output - +RUN: diff -aub test_no_gcda.cpp.gcov test.cpp.gcov +RUN: diff -aub test_no_gcda.h.gcov test.h.gcov + # Invalid gcno file. RUN: not llvm-cov test.c -gcno=test_read_fail.gcno |