diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-05-07 02:11:23 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-05-07 02:11:23 +0000 |
commit | c92330c18ce2f7015f0db88e4bfce3d253fa3c57 (patch) | |
tree | ae700f9e5977fb7a1bc760e4f2746b9b2350379b /test/tools/llvm-cov/Inputs/test_missing.h.gcov | |
parent | 56d05e468cdfd4ad195f264974f1b841bc4ca785 (diff) | |
download | llvm-c92330c18ce2f7015f0db88e4bfce3d253fa3c57.tar.gz llvm-c92330c18ce2f7015f0db88e4bfce3d253fa3c57.tar.bz2 llvm-c92330c18ce2f7015f0db88e4bfce3d253fa3c57.tar.xz |
llvm-cov: Handle missing source files as GCOV does
If the source files referenced by a gcno file are missing, gcov
outputs a coverage file where every line is simply /*EOF*/. This also
occurs for lines in the coverage that are past the end of a file that
is found.
This change mimics gcov.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208149 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tools/llvm-cov/Inputs/test_missing.h.gcov')
-rw-r--r-- | test/tools/llvm-cov/Inputs/test_missing.h.gcov | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/tools/llvm-cov/Inputs/test_missing.h.gcov b/test/tools/llvm-cov/Inputs/test_missing.h.gcov new file mode 100644 index 0000000000..d500e86196 --- /dev/null +++ b/test/tools/llvm-cov/Inputs/test_missing.h.gcov @@ -0,0 +1,6 @@ + -: 0:Source:srcdir/./nested_dir/../test.h + -: 0:Graph:test_paths.gcno + -: 0:Data:test_paths.gcda + -: 0:Runs:3 + -: 0:Programs:1 + 6: 1:/*EOF*/ |