diff options
author | Vedant Kumar <vsk@apple.com> | 2016-06-24 02:33:01 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-06-24 02:33:01 +0000 |
commit | 2c96e88ed4be0cf38702239c3d1f298835d12d78 (patch) | |
tree | ec320fc4e1859e264b0bcbaa6d4840376795580b /llvm/test/tools/llvm-cov/warnings.h | |
parent | 43e9ba0e5a0c11b27707c0ab56a942a2a98fb065 (diff) | |
download | bcm5719-llvm-2c96e88ed4be0cf38702239c3d1f298835d12d78.tar.gz bcm5719-llvm-2c96e88ed4be0cf38702239c3d1f298835d12d78.zip |
[llvm-cov] Fix two warnings
They were using output streams inconsistently. One also had a grammar
bug.
I noticed these while trying to pare down D18278.
llvm-svn: 273642
Diffstat (limited to 'llvm/test/tools/llvm-cov/warnings.h')
-rw-r--r-- | llvm/test/tools/llvm-cov/warnings.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-cov/warnings.h b/llvm/test/tools/llvm-cov/warnings.h new file mode 100644 index 00000000000..0517b6a7c87 --- /dev/null +++ b/llvm/test/tools/llvm-cov/warnings.h @@ -0,0 +1,11 @@ +// RUN: llvm-cov show %S/Inputs/prevent_false_instantiations.covmapping -instr-profile %S/Inputs/elf_binary_comdat.profdata -filename-equivalence /dev/null | FileCheck %s -allow-empty -check-prefix=FAKE-FILE-STDOUT +// RUN: llvm-cov show %S/Inputs/prevent_false_instantiations.covmapping -instr-profile %S/Inputs/elf_binary_comdat.profdata -filename-equivalence /dev/null 2>&1 | FileCheck %s -check-prefix=FAKE-FILE-STDERR + +// FAKE-FILE-STDOUT-NOT: warning: The file '{{.*}}' isn't covered. +// FAKE-FILE-STDERR: warning: The file '{{.*}}' isn't covered. + +// RUN: llvm-cov show %S/Inputs/prevent_false_instantiations.covmapping -instr-profile %S/Inputs/elf_binary_comdat.profdata -filename-equivalence -name ".*" /dev/null | FileCheck %s -allow-empty -check-prefix=FAKE-FUNC-STDOUT +// RUN: llvm-cov show %S/Inputs/prevent_false_instantiations.covmapping -instr-profile %S/Inputs/elf_binary_comdat.profdata -filename-equivalence -name-regex ".*" /dev/null 2>&1 | FileCheck %s -check-prefix=FAKE-FUNC-STDERR + +// FAKE-FUNC-STDOUT-NOT: warning: Could not read coverage for '{{.*}}'. +// FAKE-FUNC-STDERR: Could not read coverage for '{{.*}}'. |