From fa48858cb03196436af9fdc19145f4756aa333ab Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Fri, 22 Jul 2016 20:49:23 +0000 Subject: [PATCH] [llvm-cov] Don't copy stylesheets into index files Just link in the stylesheet from the toplevel dir of the report. llvm-svn: 276468 --- test/tools/llvm-cov/style.test | 11 ++++++----- tools/llvm-cov/SourceCoverageViewHTML.cpp | 3 ++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/test/tools/llvm-cov/style.test b/test/tools/llvm-cov/style.test index 253cde3ca42..543d508607c 100644 --- a/test/tools/llvm-cov/style.test +++ b/test/tools/llvm-cov/style.test @@ -5,7 +5,8 @@ RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %S RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %S/Inputs/templateInstantiations.profdata -filename-equivalence %S/showTemplateInstantiations.cpp -format html | FileCheck %s -check-prefix=NODIR RUN: FileCheck %s -input-file=%t.dir/style.css -check-prefix=STYLE -RUN: FileCheck %s -input-file=%t.dir/functions.html -check-prefix=FUNCTIONS +RUN: FileCheck %s -input-file=%t.dir/functions.html -check-prefix=TOPLEVEL +RUN: FileCheck %s -input-file=%t.dir/index.html -check-prefix=TOPLEVEL RUN: FileCheck %s -input-file=%t.dir/coverage/tmp/showTemplateInstantiations.cpp.html -check-prefix=FILEVIEW STYLE-DAG: .red @@ -19,10 +20,10 @@ STYLE-DAG: .uncovered-line STYLE-DAG: .tooltip STYLE-DAG: .tooltip span.tooltip-content -FUNCTIONS-NOT: