We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e28af23 commit 32a5ad8Copy full SHA for 32a5ad8
src/libcore/os.rs
@@ -1409,9 +1409,8 @@ mod tests {
1409
setenv(~"USERPROFILE", ~"/home/PaloAlto");
1410
fail_unless!(os::homedir() == Some(Path("/home/MountainView")));
1411
1412
- option::iter(&oldhome, |s| setenv(~"HOME", *s));
1413
- option::iter(&olduserprofile,
1414
- |s| setenv(~"USERPROFILE", *s));
+ oldhome.each(|s| {setenv(~"HOME", *s);true});
+ olduserprofile.each(|s| {setenv(~"USERPROFILE", *s);true});
1415
}
1416
1417
#[test]
src/libcore/vec.rs
@@ -2695,6 +2695,7 @@ mod tests {
2695
2696
2697
#[should_fail]
2698
+ #[ignore(cfg(windows))]
2699
fn test_last_empty() {
2700
let a: ~[int] = ~[];
2701
a.last();
0 commit comments