Skip to content

Commit 2c2f0f1

Browse files
committed
accommodate new scoping rules in libstd unit tests.
1 parent 70192ab commit 2c2f0f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/old_io/process.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1079,13 +1079,13 @@ mod tests {
10791079
#[test]
10801080
fn test_override_env() {
10811081
use os;
1082-
let mut new_env = vec![("RUN_TEST_NEW_ENV", "123")];
10831082

10841083
// In some build environments (such as chrooted Nix builds), `env` can
10851084
// only be found in the explicitly-provided PATH env variable, not in
10861085
// default places such as /bin or /usr/bin. So we need to pass through
10871086
// PATH to our sub-process.
10881087
let path_val: String;
1088+
let mut new_env = vec![("RUN_TEST_NEW_ENV", "123")];
10891089
match os::getenv("PATH") {
10901090
None => {}
10911091
Some(val) => {

0 commit comments

Comments
 (0)