From 2c2f0f121691c51e1f259801204a48e959ee7957 Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Mon, 26 Jan 2015 15:39:56 +0100 Subject: [PATCH] accommodate new scoping rules in libstd unit tests. --- src/libstd/old_io/process.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/old_io/process.rs b/src/libstd/old_io/process.rs index d7c263b3d1f..280d2a8add5 100644 --- a/src/libstd/old_io/process.rs +++ b/src/libstd/old_io/process.rs @@ -1079,13 +1079,13 @@ mod tests { #[test] fn test_override_env() { use os; - let mut new_env = vec![("RUN_TEST_NEW_ENV", "123")]; // In some build environments (such as chrooted Nix builds), `env` can // only be found in the explicitly-provided PATH env variable, not in // default places such as /bin or /usr/bin. So we need to pass through // PATH to our sub-process. let path_val: String; + let mut new_env = vec![("RUN_TEST_NEW_ENV", "123")]; match os::getenv("PATH") { None => {} Some(val) => {