diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-02-02 11:04:58 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-02-02 18:50:23 -0800 |
| commit | 9ece22ee00033cdf0b6b418c451112c92c8ad922 (patch) | |
| tree | bccd460a861e61f758d2d459cb9da02b1ad8792b /src/compiletest | |
| parent | fea07cfd3f29161451e3c3b35b17b340e5014b5c (diff) | |
| download | rust-9ece22ee00033cdf0b6b418c451112c92c8ad922.tar.gz rust-9ece22ee00033cdf0b6b418c451112c92c8ad922.zip | |
Test fixes and rebase conflicts
Diffstat (limited to 'src/compiletest')
| -rw-r--r-- | src/compiletest/util.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compiletest/util.rs b/src/compiletest/util.rs index 078d992277a..078eb7bba20 100644 --- a/src/compiletest/util.rs +++ b/src/compiletest/util.rs @@ -11,7 +11,7 @@ use common::Config; #[cfg(target_os = "windows")] -use std::os::getenv; +use std::env; /// Conversion table from triple OS name to Rust SYSNAME static OS_TABLE: &'static [(&'static str, &'static str)] = &[ @@ -40,11 +40,11 @@ pub fn make_new_path(path: &str) -> String { // Windows just uses PATH as the library search path, so we have to // maintain the current value while adding our own - match getenv(lib_path_env_var()) { - Some(curr) => { + match env::var_string(lib_path_env_var()) { + Ok(curr) => { format!("{}{}{}", path, path_div(), curr) } - None => path.to_string() + Err(..) => path.to_string() } } |
