[all-commits] [llvm/llvm-project] 0f9f24: [gcov][test] Add -dumpdir ./

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed May 17 11:54:52 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0f9f2473613519b18004158835914bc25fcb2b40
      https://github.com/llvm/llvm-project/commit/0f9f2473613519b18004158835914bc25fcb2b40
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-05-17 (Wed, 17 May 2023)

  Changed paths:
    M compiler-rt/test/profile/Posix/gcov-destructor.c
    M compiler-rt/test/profile/Posix/gcov-dlopen.c
    M compiler-rt/test/profile/Posix/gcov-execlp.c
    M compiler-rt/test/profile/Posix/gcov-fork.c
    M compiler-rt/test/profile/Posix/gcov-shared-flush.c
    M compiler-rt/test/profile/Posix/instrprof-gcov-parallel.test
    M compiler-rt/test/profile/gcov-__gcov_flush-terminate.c
    M compiler-rt/test/profile/gcov-basic.c
    M compiler-rt/test/profile/gcov-complex-line.c
    M compiler-rt/test/profile/gcov-dump-and-remove.c
    M compiler-rt/test/profile/instrprof-gcov-exceptions.test
    M compiler-rt/test/profile/instrprof-gcov-multiple-bbs-single-line.test
    M compiler-rt/test/profile/instrprof-gcov-multithread_fork.test
    M compiler-rt/test/profile/instrprof-gcov-one-line-function.test
    M compiler-rt/test/profile/instrprof-gcov-switch.test

  Log Message:
  -----------
  [gcov][test] Add -dumpdir ./

These tests rely on an unintended behavior that when the driver performs both
compilation and linking phases, the .gcno & .gcda files are placed in PWD. The
behavior will be fixed to respect -o (match -ftime-trace, -gsplit-dwarf, and
GCC).

Add -dumpdir ./ so that the tests will work with or without the behavior change,
and make it easy to compare the coverage behavior with GCC.




More information about the All-commits mailing list