We already remove dots from collected paths and path mappings. This makes it difficult to match paths inside the profile which contain dots. For example, we would never match /path/to/../file.c because the collected path is always be normalized to /path/file.c. This change enables dot removal for paths inside the profile to address the issue. Differential Revision: https://reviews.llvm.org/D123164
11 lines
443 B
Plaintext
11 lines
443 B
Plaintext
# RUN: llvm-profdata merge %S/Inputs/relative_dir/main.proftext \
|
|
# RUN: -o %t.profdata
|
|
# RUN: llvm-cov report %S/Inputs/relative_dir/main.covmapping \
|
|
# RUN: -instr-profile %t.profdata \
|
|
# RUN: -compilation-dir=%S/Inputs/relative_dir/out/default \
|
|
# RUN: %S/Inputs/relative_dir/header.h \
|
|
# RUN: | FileCheck -DDIR=%S %s
|
|
|
|
# CHECK: {{^}}[[DIR]]{{/|\\}}Inputs{{/|\\}}relative_dir{{/|\\}}header.h{{.*}}
|
|
# CHECK: {{^}}TOTAL{{.*}}100.00%
|