diff options
| author | Vedant Kumar <vsk@apple.com> | 2017-09-08 18:44:47 +0000 |
|---|---|---|
| committer | Vedant Kumar <vsk@apple.com> | 2017-09-08 18:44:47 +0000 |
| commit | bae8397006fcb479bc9bcfe84e826bacbfbe7891 (patch) | |
| tree | 0c0ce2fffaaec799f50bf914d6f74ac9652b37af /llvm/test/tools/llvm-cov/warnings.h | |
| parent | 933b37f99f4f6f2ca3ab0d268caafc33c50bee84 (diff) | |
| download | bcm5719-llvm-bae8397006fcb479bc9bcfe84e826bacbfbe7891.tar.gz bcm5719-llvm-bae8397006fcb479bc9bcfe84e826bacbfbe7891.zip | |
[Coverage] Report errors when reading malformed source regions
Each source region has a start and end location. Report an error when
the end location does not precede the begin location.
The old lineExecutionCounts.covmapping test actually had a buggy source
region in it. This commit introduces a regenerated copy of the coverage
and moves the old copy to malformedRegions.covmapping, for a test.
Differential Revision: https://reviews.llvm.org/D37387
llvm-svn: 312814
Diffstat (limited to 'llvm/test/tools/llvm-cov/warnings.h')
| -rw-r--r-- | llvm/test/tools/llvm-cov/warnings.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-cov/warnings.h b/llvm/test/tools/llvm-cov/warnings.h index a7826e8bcc8..5bd62be6d04 100644 --- a/llvm/test/tools/llvm-cov/warnings.h +++ b/llvm/test/tools/llvm-cov/warnings.h @@ -11,3 +11,6 @@ // FAKE-FUNC-STDOUT-NOT: warning: Could not read coverage for '{{.*}}'. // FAKE-FUNC-STDERR: Could not read coverage for '{{.*}}'. + +// RUN: not llvm-cov report %S/Inputs/malformedRegions.covmapping -instr-profile %S/Inputs/elf_binary_comdat.profdata 2>&1 | FileCheck %s -check-prefix=MALFORMED-REGION +// MALFORMED-REGION: malformedRegions.covmapping: Failed to load coverage: Malformed coverage data |

