Skip to content

Commit cf533dd

Browse files
authored
Rollup merge of rust-lang#105954 - gftea:patch-1, r=ehuss
Update instrument-coverage.md explicitly set environment variable LLVM_PROFILE_FILE="default_%m.profraw" when starting cargo test, otherwise, only one `default.profraw ` is generated and will be overwritten if run unnittests and integration tests at the same time.
2 parents 4817259 + c1f1f60 commit cf533dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/doc/rustc/src/instrument-coverage.md

+2
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ $ RUSTFLAGS="-C instrument-coverage" \
201201
cargo test --tests
202202
```
203203

204+
> **Note**: The default for `LLVM_PROFILE_FILE` is `default_%m_%p.profraw`. Versions prior to 1.65 had a default of `default.profraw`, so if using those earlier versions, it is recommended to explicitly set `LLVM_PROFILE_FILE="default_%m_%p.profraw"` to avoid having multiple tests overwrite the `.profraw` files.
205+
204206
Make note of the test binary file paths, displayed after the word "`Running`" in the test output:
205207

206208
```text

0 commit comments

Comments
 (0)