Skip to content

Commit

Permalink
test-utils: Make the test harness forward LLVM_PROFILE_FILE to coreut…
Browse files Browse the repository at this point in the history
…il call
  • Loading branch information
RenjiSann committed Mar 5, 2025
1 parent 1582110 commit 09a916d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/common/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1657,6 +1657,11 @@ impl UCommand {
}
}

// Forward the LLVM_PROFILE_FILE variable to the call, for coverage purposes.
if let Some(ld_preload) = env::var_os("LLVM_PROFILE_FILE") {
command.env("LLVM_PROFILE_FILE", ld_preload);
}

command
.envs(DEFAULT_ENV)
.envs(self.env_vars.iter().cloned());
Expand Down

0 comments on commit 09a916d

Please sign in to comment.