[test] Fix compiler-rt/test/profile/coverage_emptylines.cpp if the build directory...
authorFangrui Song <i@maskray.me>
Fri, 11 Dec 2020 00:57:09 +0000 (16:57 -0800)
committerFangrui Song <i@maskray.me>
Fri, 11 Dec 2020 00:57:10 +0000 (16:57 -0800)
commitf23fae29eb38b9e9d0c6195fa82a882167bd8abe
tree79cb37be1345f603849e4701f1a0fb2f2c441b30
parent8d396acac3bc21f688ac707bb42e4698dbdcab7e
[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.
compiler-rt/test/profile/Linux/coverage_ctors.cpp
compiler-rt/test/profile/Linux/coverage_dtor.cpp
compiler-rt/test/profile/Linux/coverage_test.cpp
compiler-rt/test/profile/coverage_comments.cpp
compiler-rt/test/profile/coverage_emptylines.cpp