mirror of
https://github.com/RPCS3/llvm.git
synced 2026-08-26 18:26:51 -04:00
10ad4e00d9
Instead of stripping the longest common prefix off of the filenames in a report, strip out the longest chain of redundant path components. This fixes the case in PR31982, where there are two files with the same prefix, and stripping out the LCP makes things less intelligible. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296029 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
702 B
Plaintext
16 lines
702 B
Plaintext
// RUN: llvm-profdata merge %S/Inputs/multiple-files.proftext -o %t.profdata
|
|
// RUN: llvm-cov report %S/Inputs/multiple-files.covmapping -instr-profile %t.profdata | FileCheck %s -check-prefix=MANY_COMPONENTS
|
|
// RUN: llvm-cov report %S/Inputs/multiple-files2.covmapping -instr-profile %t.profdata | FileCheck %s -check-prefix=ONE_COMPONENT
|
|
|
|
// MANY_COMPONENTS: Filename
|
|
// MANY_COMPONENTS-NEXT: ---
|
|
// MANY_COMPONENTS-NEXT: {{^}}a{{[/\\]}}f2.c
|
|
// MANY_COMPONENTS-NEXT: {{^}}b{{[/\\]}}c{{[/\\]}}f4.c
|
|
// MANY_COMPONENTS-NEXT: {{^}}b{{[/\\]}}f3.c
|
|
// MANY_COMPONENTS-NEXT: {{^}}f1.c
|
|
|
|
// ONE_COMPONENT: Filename
|
|
// ONE_COMPONENT-NEXT: ---
|
|
// ONE_COMPONENT-NEXT: {{^}}cov.c
|
|
// ONE_COMPONENT-NEXT: {{^}}cov.h
|