2018-06-04 22:08:41 +02:00
|
|
|
diff --git a/src/libstd/net/tcp.rs b/src/libstd/net/tcp.rs
|
2019-03-01 08:55:55 +01:00
|
|
|
index 86ecb10edf..626be0a52d 100644
|
2018-06-04 22:08:41 +02:00
|
|
|
--- a/src/libstd/net/tcp.rs
|
|
|
|
+++ b/src/libstd/net/tcp.rs
|
2019-03-01 08:55:55 +01:00
|
|
|
@@ -955,6 +955,7 @@ mod tests {
|
2018-06-04 22:08:41 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
+ #[cfg_attr(target_os = "macos", ignore)]
|
|
|
|
#[test]
|
|
|
|
fn listen_localhost() {
|
|
|
|
let socket_addr = next_test_ip4();
|
2019-03-01 08:55:55 +01:00
|
|
|
@@ -1013,6 +1014,7 @@ mod tests {
|
2018-06-04 22:08:41 +02:00
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
+ #[cfg_attr(target_os = "macos", ignore)]
|
|
|
|
#[test]
|
|
|
|
fn read_eof() {
|
|
|
|
each_ip(&mut |addr| {
|
2019-03-01 08:55:55 +01:00
|
|
|
@@ -1032,6 +1034,7 @@ mod tests {
|
2018-06-04 22:08:41 +02:00
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
+ #[cfg_attr(target_os = "macos", ignore)]
|
|
|
|
#[test]
|
|
|
|
fn write_close() {
|
|
|
|
each_ip(&mut |addr| {
|
2019-03-01 08:55:55 +01:00
|
|
|
@@ -1058,6 +1061,7 @@ mod tests {
|
2018-06-04 22:08:41 +02:00
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
+ #[cfg_attr(target_os = "macos", ignore)]
|
|
|
|
#[test]
|
|
|
|
fn multiple_connect_serial() {
|
|
|
|
each_ip(&mut |addr| {
|
2019-03-01 08:55:55 +01:00
|
|
|
@@ -1080,6 +1084,7 @@ mod tests {
|
2018-06-04 22:08:41 +02:00
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
+ #[cfg_attr(target_os = "macos", ignore)]
|
|
|
|
#[test]
|
|
|
|
fn multiple_connect_interleaved_greedy_schedule() {
|
|
|
|
const MAX: usize = 10;
|
2019-03-01 08:55:55 +01:00
|
|
|
@@ -1116,6 +1121,7 @@ mod tests {
|
2018-06-04 22:08:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
+ #[cfg_attr(target_os = "macos", ignore)]
|
|
|
|
fn multiple_connect_interleaved_lazy_schedule() {
|
|
|
|
const MAX: usize = 10;
|
|
|
|
each_ip(&mut |addr| {
|
2019-03-01 08:55:55 +01:00
|
|
|
@@ -1394,6 +1400,7 @@ mod tests {
|
2018-06-04 22:08:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
+ #[cfg_attr(target_os = "macos", ignore)]
|
|
|
|
fn clone_while_reading() {
|
|
|
|
each_ip(&mut |addr| {
|
|
|
|
let accept = t!(TcpListener::bind(&addr));
|
2019-03-01 08:55:55 +01:00
|
|
|
@@ -1504,7 +1511,10 @@ mod tests {
|
2018-06-04 22:08:41 +02:00
|
|
|
|
|
|
|
// FIXME: re-enabled bitrig/openbsd tests once their socket timeout code
|
|
|
|
// no longer has rounding errors.
|
|
|
|
- #[cfg_attr(any(target_os = "bitrig", target_os = "netbsd", target_os = "openbsd"), ignore)]
|
|
|
|
+ #[cfg_attr(any(target_os = "bitrig",
|
|
|
|
+ target_os = "netbsd",
|
|
|
|
+ target_os = "openbsd",
|
|
|
|
+ target_os = "macos"), ignore)]
|
|
|
|
#[test]
|
|
|
|
fn timeouts() {
|
|
|
|
let addr = next_test_ip4();
|
2019-03-01 08:55:55 +01:00
|
|
|
@@ -1591,6 +1601,7 @@ mod tests {
|
2018-06-04 22:08:41 +02:00
|
|
|
drop(listener);
|
|
|
|
}
|
|
|
|
|
|
|
|
+ #[cfg_attr(target_os = "macos", ignore)]
|
|
|
|
#[test]
|
|
|
|
fn nodelay() {
|
|
|
|
let addr = next_test_ip4();
|
2019-03-01 08:55:55 +01:00
|
|
|
@@ -1605,6 +1616,7 @@ mod tests {
|
2018-06-04 22:08:41 +02:00
|
|
|
assert_eq!(false, t!(stream.nodelay()));
|
|
|
|
}
|
|
|
|
|
|
|
|
+ #[cfg_attr(target_os = "macos", ignore)]
|
|
|
|
#[test]
|
|
|
|
fn ttl() {
|
|
|
|
let ttl = 100;
|
2019-03-01 08:55:55 +01:00
|
|
|
@@ -1642,6 +1654,7 @@ mod tests {
|
2018-06-04 22:08:41 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
+ #[cfg_attr(target_os = "macos", ignore)]
|
|
|
|
#[test]
|
|
|
|
fn peek() {
|
|
|
|
each_ip(&mut |addr| {
|