diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-01-26 15:39:56 +0100 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-01-27 10:26:52 +0100 |
| commit | 2c2f0f121691c51e1f259801204a48e959ee7957 (patch) | |
| tree | 6efb48db10f04884177e590888061a8d0b1b0e8b /src/libstd/old_io/process.rs | |
| parent | 70192ab7796b5c25b0f6ef015f6e3ceacf73a9b8 (diff) | |
| download | rust-2c2f0f121691c51e1f259801204a48e959ee7957.tar.gz rust-2c2f0f121691c51e1f259801204a48e959ee7957.zip | |
accommodate new scoping rules in libstd unit tests.
Diffstat (limited to 'src/libstd/old_io/process.rs')
| -rw-r--r-- | src/libstd/old_io/process.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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) => { |
