summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-cov/warnings.h
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2017-09-08 18:44:47 +0000
committerVedant Kumar <vsk@apple.com>2017-09-08 18:44:47 +0000
commitbae8397006fcb479bc9bcfe84e826bacbfbe7891 (patch)
tree0c0ce2fffaaec799f50bf914d6f74ac9652b37af /llvm/test/tools/llvm-cov/warnings.h
parent933b37f99f4f6f2ca3ab0d268caafc33c50bee84 (diff)
downloadbcm5719-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.h3
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
OpenPOWER on IntegriCloud