Skip to content

Commit 325bdc3

Browse files
committed
Unset LLVM_PROFILE_FILE after executing test
In the case of hermetic toolchains it is possible that the llvm-cov used in the coverage script is built with coverage enabled, in which case we don't want to accidentally produce extra profraw files for anything but the test process.
1 parent 7b9a33f commit 325bdc3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/test/collect_coverage.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ fi
169169
# ------------------EXPERIMENTAL---------------------
170170
# After this point we can run the code necessary for the coverage spawn
171171

172+
# Make sure no binaries run later produce coverage data.
173+
unset LLVM_PROFILE_FILE
174+
172175
if [[ "$SPLIT_COVERAGE_POST_PROCESSING" == "1" && "$IS_COVERAGE_SPAWN" == "0" ]]; then
173176
exit 0
174177
fi

0 commit comments

Comments
 (0)