Correctly ignore some tests on windows
These two tests are notoriously flaky on the windows bots right now, so I'm ignoring them until I can investigate them some more. The truncate_works test has been flaky for quite some time, but it has gotten much worse recently. The test_exists test has been flaky since the recent std::run rewrite landed. Finally, the "unix pipe" test failure is a recent discovery on the try bots. I haven't seen this failing much, but better safe than sorry! cc #12516
This commit is contained in:
parent
672097753a
commit
c0e767b00b
@ -1106,9 +1106,8 @@ pub fn tmpdir() -> TempDir {
|
||||
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");
|
||||
@ -1138,7 +1137,7 @@ pub fn tmpdir() -> TempDir {
|
||||
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();
|
||||
|
@ -192,7 +192,7 @@ pub fn smalltest(server: proc(UnixStream), client: proc(UnixStream)) {
|
||||
}, proc(_client) {
|
||||
// drop the client
|
||||
})
|
||||
})
|
||||
} #[ignore(cfg(windows))]) // FIXME(#12516)
|
||||
|
||||
iotest!(fn write_begone() {
|
||||
smalltest(proc(mut server) {
|
||||
|
@ -823,11 +823,10 @@ pub fn sleeper() -> Process {
|
||||
assert!(!p.wait().success());
|
||||
})
|
||||
|
||||
#[ignore(cfg(windows))]
|
||||
iotest!(fn test_exists() {
|
||||
let mut p = sleeper();
|
||||
assert!(Process::kill(p.id(), 0).is_ok());
|
||||
p.signal_kill().unwrap();
|
||||
assert!(!p.wait().success());
|
||||
})
|
||||
} #[ignore(cfg(windows))]) // FIXME(#12516)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user