diff options
author | Vedant Kumar <vsk@apple.com> | 2018-05-30 23:35:14 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2018-05-30 23:35:14 +0000 |
commit | e3c1fb8b124246343f20b98f4035b61dd3ccd7df (patch) | |
tree | 00e0139e0c109611a5e5f67de5fa2dc34a687572 /llvm/test | |
parent | 1c6961d3bae1ddd19f97cbd58be688ed50cee190 (diff) | |
download | bcm5719-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.cpp | 14 |
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: (void) "This tab starts at column 0"; - (void) " This tab starts at column 10"; // CHECK: (void) " This tab starts at column 10"; - (void) "This tab starts at column 15"; // CHECK: (void) "This tab starts at column 15"; + (void) "This tab starts at column 0"; // CHECK: > (void) "This tab starts at column 0"; + (void) " This tab starts at column 10"; // CHECK: > (void) " This tab starts at column 10"; + (void) "This tab starts at column 15"; // CHECK: > (void) "This tab starts at column 15"; 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: (void) "This tab starts at column 0"; -// CHECK-TABSIZE: (void) " This tab starts at column 10"; -// CHECK-TABSIZE: (void) "This tab starts at column 15"; +// CHECK-TABSIZE: > (void) "This tab starts at column 0"; +// CHECK-TABSIZE: > (void) " This tab starts at column 10"; +// CHECK-TABSIZE: > (void) "This tab starts at column 15"; |