diff options
author | Justin Bogner <mail@justinbogner.com> | 2015-03-19 00:02:23 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2015-03-19 00:02:23 +0000 |
commit | cfb53e49b6962f314d7a153d7d940d9aff291274 (patch) | |
tree | 053246fe620352ed9204745fb6f0dbd75d14497d /llvm/test/tools/llvm-cov/showLineExecutionCounts.cpp | |
parent | 81cfeb19997230fc8b4eefcfbf15b22ecf0b97e1 (diff) | |
download | bcm5719-llvm-cfb53e49b6962f314d7a153d7d940d9aff291274.tar.gz bcm5719-llvm-cfb53e49b6962f314d7a153d7d940d9aff291274.zip |
llvm-cov: Only emit colour by default if the output is a tty
This replaces the -no-color flag with a -color={auto|always|never}
option, with auto as the default, which is much saner.
llvm-svn: 232693
Diffstat (limited to 'llvm/test/tools/llvm-cov/showLineExecutionCounts.cpp')
-rw-r--r-- | llvm/test/tools/llvm-cov/showLineExecutionCounts.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/tools/llvm-cov/showLineExecutionCounts.cpp b/llvm/test/tools/llvm-cov/showLineExecutionCounts.cpp index 895d0f4f862..d5254da788b 100644 --- a/llvm/test/tools/llvm-cov/showLineExecutionCounts.cpp +++ b/llvm/test/tools/llvm-cov/showLineExecutionCounts.cpp @@ -26,5 +26,5 @@ int main() { // CHECK: 1| [[@LINE]]|int main( // after coverage // WHOLE-FILE: | [[@LINE]]|// after // FILTER-NOT: | [[@LINE-1]]|// after -// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -instr-profile %t.profdata -no-colors -filename-equivalence %s | FileCheck -check-prefix=CHECK -check-prefix=WHOLE-FILE %s -// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -instr-profile %t.profdata -no-colors -filename-equivalence -name=main %s | FileCheck -check-prefix=CHECK -check-prefix=FILTER %s +// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -instr-profile %t.profdata -filename-equivalence %s | FileCheck -check-prefix=CHECK -check-prefix=WHOLE-FILE %s +// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -instr-profile %t.profdata -filename-equivalence -name=main %s | FileCheck -check-prefix=CHECK -check-prefix=FILTER %s |