Skip to content

Commit

Permalink
Revert not-ignoring weird environment variables for MinGW
Browse files Browse the repository at this point in the history
  • Loading branch information
tbu- committed Nov 18, 2015
1 parent 28f6b88 commit 2731c82
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/test/run-pass/env-vars.rs
Expand Up @@ -14,7 +14,10 @@ use std::env::*;
fn main() {
for (k, v) in vars_os() {
let v2 = var_os(&k);
assert!(v2.as_ref().map(|s| &**s) == Some(&*v),
// MingW seems to set some funky environment variables like
// "=C:=C:\MinGW\msys\1.0\bin" and "!::=::\" that are returned
// from vars() but not visible from var().
assert!(v2.is_none() || v2.as_ref().map(|s| &**s) == Some(&*v),
"bad vars->var transition: {:?} {:?} {:?}", k, v, v2);
}
}

0 comments on commit 2731c82

Please sign in to comment.