Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/libstd/io/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1106,9 +1106,8 @@ mod test {
file.fsync().unwrap();
file.datasync().unwrap();
drop(file);
})
} #[ignore(cfg(windows))])

#[ignore(cfg(windows))] // FIXME(#11638)
iotest!(fn truncate_works() {
let tmpdir = tmpdir();
let path = tmpdir.join("in.txt");
Expand Down Expand Up @@ -1138,7 +1137,7 @@ mod test {
assert_eq!(File::open(&path).read_to_end().unwrap(),
(bytes!("fo", 0, 0, 0, 0, "wut")).to_owned());
drop(file);
})
} #[ignore(cfg(windows))]) // FIXME(#11638)

iotest!(fn open_flavors() {
let tmpdir = tmpdir();
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/io/net/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ mod tests {
}, proc(_client) {
// drop the client
})
})
} #[ignore(cfg(windows))]) // FIXME(#12516)

iotest!(fn write_begone() {
smalltest(proc(mut server) {
Expand Down
6 changes: 4 additions & 2 deletions src/libstd/io/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,10 @@ mod tests {
}
#[cfg(windows)]
pub fn sleeper() -> Process {
Process::new("timeout", [~"1000"]).unwrap()
// There's a `timeout` command on windows, but it doesn't like having
// its output piped, so instead just ping ourselves a few times with
// gaps inbetweeen so we're sure this process is alive for awhile
Process::new("ping", [~"127.0.0.1", ~"-n", ~"1000"]).unwrap()
}

iotest!(fn test_kill() {
Expand All @@ -823,7 +826,6 @@ mod tests {
assert!(!p.wait().success());
})

#[ignore(cfg(windows))]
iotest!(fn test_exists() {
let mut p = sleeper();
assert!(Process::kill(p.id(), 0).is_ok());
Expand Down