mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-14 09:36:06 +00:00
core: fix broken tests on windows
This commit is contained in:
parent
25c3c363a8
commit
a04ba76f8e
@ -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]
|
||||
|
@ -2692,6 +2692,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
#[should_fail]
|
||||
#[ignore(cfg(windows))]
|
||||
fn test_last_empty() {
|
||||
let a: ~[int] = ~[];
|
||||
a.last();
|
||||
|
Loading…
Reference in New Issue
Block a user