Skip to content

Commit 09a916d

Browse files
committed
test-utils: Make the test harness forward LLVM_PROFILE_FILE to coreutil call
1 parent 1582110 commit 09a916d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/common/util.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,6 +1657,11 @@ impl UCommand {
16571657
}
16581658
}
16591659

1660+
// Forward the LLVM_PROFILE_FILE variable to the call, for coverage purposes.
1661+
if let Some(ld_preload) = env::var_os("LLVM_PROFILE_FILE") {
1662+
command.env("LLVM_PROFILE_FILE", ld_preload);
1663+
}
1664+
16601665
command
16611666
.envs(DEFAULT_ENV)
16621667
.envs(self.env_vars.iter().cloned());

0 commit comments

Comments
 (0)