Fangrui Song
f23fae29eb
[test] Fix compiler-rt/test/profile/coverage_emptylines.cpp if the build directory is under /tmp
...
llvm-cov -path-equivalence=/tmp,... is used by some checked-in coverage mapping
files where the original filename is under /tmp. If the test itself produces the
coverage mapping file, there is no need for /tmp.
For coverage_emptylines.cpp: the source filename is under the build directory.
If the build directory is under /tmp, the path mapping will make
llvm-cov fail to find the file.
2020-12-10 16:57:10 -08:00
Zequan Wu
b46176bbb0
Reland [Coverage] Add comment to skipped regions
...
Bug filled here: https://bugs.llvm.org/show_bug.cgi?id=45757 .
Add comment to skipped regions so we don't track execution count for lines containing only comments.
Differential Revision: https://reviews.llvm.org/D83592
2020-07-28 13:20:57 -07:00
Hans Wennborg
238bbd48c5
Revert abd45154b
"[Coverage] Add comment to skipped regions"
...
This casued assertions during Chromium builds. See comment on the code review
> Bug filled here: https://bugs.llvm.org/show_bug.cgi?id=45757 .
> Add comment to skipped regions so we don't track execution count for lines containing only comments.
>
> Differential Revision: https://reviews.llvm.org/D84208
This reverts commit abd45154bd
and the
follow-up 87d7254733
.
2020-07-22 17:09:20 +02:00
Zequan Wu
87d7254733
[Coverage] Fix coverage test cases.
2020-07-21 18:01:29 -07:00
Zequan Wu
abd45154bd
[Coverage] Add comment to skipped regions
...
Bug filled here: https://bugs.llvm.org/show_bug.cgi?id=45757 .
Add comment to skipped regions so we don't track execution count for lines containing only comments.
Differential Revision: https://reviews.llvm.org/D84208
2020-07-21 17:34:18 -07:00