Skip to content

Commit f552a6c

Browse files
committed
test-utils: make the test harness forward LLVM_PROFILE_FILE to coreutil call
1 parent f5d3a2d commit f552a6c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/uutests/src/lib/util.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,6 +1762,11 @@ impl UCommand {
17621762
}
17631763
}
17641764

1765+
// Forward the LLVM_PROFILE_FILE variable to the call, for coverage purposes.
1766+
if let Some(ld_preload) = env::var_os("LLVM_PROFILE_FILE") {
1767+
command.env("LLVM_PROFILE_FILE", ld_preload);
1768+
}
1769+
17651770
command
17661771
.envs(DEFAULT_ENV)
17671772
.envs(self.env_vars.iter().cloned());

0 commit comments

Comments
 (0)