a42044c6b5
Fixes #21936
45 lines
1.3 KiB
Diff
45 lines
1.3 KiB
Diff
From 1d8a91d5b09cb762fe890d04bfb61b9eefd0624a Mon Sep 17 00:00:00 2001
|
|
From: Moritz Ulrich <moritz@tarn-vedra.de>
|
|
Date: Sun, 8 Jan 2017 10:28:17 +0100
|
|
Subject: [PATCH] Disable libstd::net::tcp::{ttl, timeouts} on Darwin
|
|
|
|
---
|
|
src/libstd/net/tcp.rs | 7 ++++++-
|
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/libstd/net/tcp.rs b/src/libstd/net/tcp.rs
|
|
index 0e7c5b0671..d42fd26267 100644
|
|
--- a/src/libstd/net/tcp.rs
|
|
+++ b/src/libstd/net/tcp.rs
|
|
@@ -551,6 +551,7 @@ mod tests {
|
|
})
|
|
}
|
|
|
|
+ #[cfg_attr(target_os = "macos", ignore)]
|
|
#[test]
|
|
fn write_close() {
|
|
each_ip(&mut |addr| {
|
|
@@ -1022,7 +1023,10 @@ mod tests {
|
|
|
|
// 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();
|
|
@@ -1101,6 +1105,7 @@ mod tests {
|
|
assert_eq!(false, t!(stream.nodelay()));
|
|
}
|
|
|
|
+ #[cfg_attr(target_os = "macos", ignore)]
|
|
#[test]
|
|
fn ttl() {
|
|
let ttl = 100;
|
|
--
|
|
2.11.0
|
|
|