[all-commits] [llvm/llvm-project] f23fae: [test] Fix compiler-rt/test/profile/coverage_empty...

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Dec 10 16:57:27 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f23fae29eb38b9e9d0c6195fa82a882167bd8abe
      https://github.com/llvm/llvm-project/commit/f23fae29eb38b9e9d0c6195fa82a882167bd8abe
  Author: Fangrui Song <i at maskray.me>
  Date:   2020-12-10 (Thu, 10 Dec 2020)

  Changed paths:
    M compiler-rt/test/profile/Linux/coverage_ctors.cpp
    M compiler-rt/test/profile/Linux/coverage_dtor.cpp
    M compiler-rt/test/profile/Linux/coverage_test.cpp
    M compiler-rt/test/profile/coverage_comments.cpp
    M compiler-rt/test/profile/coverage_emptylines.cpp

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list