diff --git a/src/libcore/os.rs b/src/libcore/os.rs index ee14758221a..c7c0302a099 100644 --- a/src/libcore/os.rs +++ b/src/libcore/os.rs @@ -1409,9 +1409,8 @@ mod tests { setenv(~"USERPROFILE", ~"/home/PaloAlto"); fail_unless!(os::homedir() == Some(Path("/home/MountainView"))); - option::iter(&oldhome, |s| setenv(~"HOME", *s)); - option::iter(&olduserprofile, - |s| setenv(~"USERPROFILE", *s)); + oldhome.each(|s| {setenv(~"HOME", *s);true}); + olduserprofile.each(|s| {setenv(~"USERPROFILE", *s);true}); } #[test] diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs index 697bfe63b18..68dca608a48 100644 --- a/src/libcore/vec.rs +++ b/src/libcore/vec.rs @@ -2692,6 +2692,7 @@ mod tests { #[test] #[should_fail] + #[ignore(cfg(windows))] fn test_last_empty() { let a: ~[int] = ~[]; a.last();