Rollup merge of #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.
This commit is contained in:
Matthias Krüger 2023-01-16 20:29:37 +01:00 committed by GitHub
commit cf533dd3d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -201,6 +201,8 @@ $ RUSTFLAGS="-C instrument-coverage" \
cargo test --tests
```
> **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.
Make note of the test binary file paths, displayed after the word "`Running`" in the test output:
```text