[all-commits] [llvm/llvm-project] a07f90: [lit] Avoid profraw filename collisions with --per...
Bryson Miller via All-commits
all-commits at lists.llvm.org
Tue Jun 16 12:22:13 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a07f90ba94938e61f81612bb00b568cb4503f3d4
https://github.com/llvm/llvm-project/commit/a07f90ba94938e61f81612bb00b568cb4503f3d4
Author: Bryson Miller <bryson at efficient.computer>
Date: 2026-06-16 (Tue, 16 Jun 2026)
Changed paths:
M llvm/utils/lit/lit/TestRunner.py
A llvm/utils/lit/tests/Inputs/per-test-coverage-by-lit-cfg/name-collision/a/test.py
A llvm/utils/lit/tests/Inputs/per-test-coverage-by-lit-cfg/name-collision/b/test.py
M llvm/utils/lit/tests/Inputs/per-test-coverage-by-lit-cfg/per-test-coverage-by-lit-cfg.py
M llvm/utils/lit/tests/Inputs/per-test-coverage/per-test-coverage.py
M llvm/utils/lit/tests/per-test-coverage-by-lit-cfg.py
M llvm/utils/lit/tests/per-test-coverage.py
Log Message:
-----------
[lit] Avoid profraw filename collisions with --per-test-coverage (#203998)
Per-test-coverage derived the `LLVM_PROFILE_FILE` name from the test's
basename with its extension removed, so siblings that share a basename
but differ by directory or extension (e.g. foo.c and foo.cpp in one
directory) wrote into the same profraw file and raced on it.
This PR builds the name from the full path in the suite and adds the
`%p` and `%m` placeholders so a test that runs several instrumented
binaries gets a distinct file per process and per binary, even across
exec chains or recycled process ids.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list