summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2018-05-30 23:35:14 +0000
committerVedant Kumar <vsk@apple.com>2018-05-30 23:35:14 +0000
commite3c1fb8b124246343f20b98f4035b61dd3ccd7df (patch)
tree00e0139e0c109611a5e5f67de5fa2dc34a687572 /llvm/test
parent1c6961d3bae1ddd19f97cbd58be688ed50cee190 (diff)
downloadbcm5719-llvm-e3c1fb8b124246343f20b98f4035b61dd3ccd7df.tar.gz
bcm5719-llvm-e3c1fb8b124246343f20b98f4035b61dd3ccd7df.zip
[llvm-cov] Use the new PrintHTMLEscaped utility
This removes some duplicate logic to escape characters in HTML output. llvm-svn: 333608
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/tools/llvm-cov/showTabsHTML.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/test/tools/llvm-cov/showTabsHTML.cpp b/llvm/test/tools/llvm-cov/showTabsHTML.cpp
index 6f10c3b539f..c9fea2b1680 100644
--- a/llvm/test/tools/llvm-cov/showTabsHTML.cpp
+++ b/llvm/test/tools/llvm-cov/showTabsHTML.cpp
@@ -1,16 +1,16 @@
// RUN: llvm-profdata merge -o %t.profdata %S/Inputs/showTabsHTML.proftext
-// RUN: llvm-cov show %S/Inputs/showTabsHTML.covmapping -format html -instr-profile %t.profdata -path-equivalence=/tmp,%S %s | FileCheck %s
+// RUN: llvm-cov show %S/Inputs/showTabsHTML.covmapping -format html -instr-profile %t.profdata -path-equivalence=/tmp,%S %s | FileCheck %s --strict-whitespace
int main(int argc, char ** argv) {
- (void) "This tab starts at column 0"; // CHECK: &nbsp;&nbsp;(void) &quot;This tab starts at column 0&quot;;
- (void) " This tab starts at column 10"; // CHECK: (void) &quot;&nbsp;&nbsp;This tab starts at column 10&quot;;
- (void) "This tab starts at column 15"; // CHECK: (void) &quot;This &nbsp; tab starts at column 15&quot;;
+ (void) "This tab starts at column 0"; // CHECK: > (void) &quot;This tab starts at column 0&quot;;
+ (void) " This tab starts at column 10"; // CHECK: > (void) &quot; This tab starts at column 10&quot;;
+ (void) "This tab starts at column 15"; // CHECK: > (void) &quot;This tab starts at column 15&quot;;
return 0;
}
// RUN: llvm-cov show %S/Inputs/showTabsHTML.covmapping -format html -tab-size=3 -instr-profile %t.profdata -path-equivalence=/tmp,%S %s | FileCheck -check-prefix=CHECK-TABSIZE %s
-// CHECK-TABSIZE: &nbsp;&nbsp;&nbsp;(void) &quot;This tab starts at column 0&quot;;
-// CHECK-TABSIZE: (void) &quot;&nbsp;&nbsp;This tab starts at column 10&quot;;
-// CHECK-TABSIZE: (void) &quot;This &nbsp;&nbsp;&nbsp; tab starts at column 15&quot;;
+// CHECK-TABSIZE: > (void) &quot;This tab starts at column 0&quot;;
+// CHECK-TABSIZE: > (void) &quot; This tab starts at column 10&quot;;
+// CHECK-TABSIZE: > (void) &quot;This tab starts at column 15&quot;;
OpenPOWER on IntegriCloud