diff options
| author | bors <bors@rust-lang.org> | 2015-06-11 06:46:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-06-11 06:46:25 +0000 |
| commit | cf0edd0ad941a4a569e8afb17494cb1eb53373e9 (patch) | |
| tree | 949affdeb56e63b7a329965783e2f9a1e4749971 | |
| parent | 37cf025f1c04b2deab2afe7dd08c1f4fa2cb18d6 (diff) | |
| parent | 4a2d4d3eb9ee6ce349503285527db3bc81bdbdf7 (diff) | |
| download | rust-cf0edd0ad941a4a569e8afb17494cb1eb53373e9.tar.gz rust-cf0edd0ad941a4a569e8afb17494cb1eb53373e9.zip | |
Auto merge of #26155 - dhuseby:fixing_bitrig_net_tests, r=alexcrichton
… congruent due to rounding errors @semarie this affected both openbsd and bitrig. it seems the correct solution is to switch to fixed point arithmetic in the timeout code, the same as freebsd.
| -rw-r--r-- | src/libstd/net/tcp.rs | 3 | ||||
| -rw-r--r-- | src/libstd/net/udp.rs | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/libstd/net/tcp.rs b/src/libstd/net/tcp.rs index 36854db63a3..222059e4c0e 100644 --- a/src/libstd/net/tcp.rs +++ b/src/libstd/net/tcp.rs @@ -902,6 +902,9 @@ mod tests { assert_eq!(format!("{:?}", stream), compare); } + // FIXME: re-enabled bitrig/openbsd tests once their socket timeout code + // no longer has rounding errors. + #[cfg_attr(any(target_os = "bitrig", target_os = "openbsd"), ignore)] #[test] fn timeouts() { let addr = next_test_ip4(); diff --git a/src/libstd/net/udp.rs b/src/libstd/net/udp.rs index ebabba7def1..c3cf9895205 100644 --- a/src/libstd/net/udp.rs +++ b/src/libstd/net/udp.rs @@ -360,6 +360,9 @@ mod tests { assert_eq!(format!("{:?}", udpsock), compare); } + // FIXME: re-enabled bitrig/openbsd tests once their socket timeout code + // no longer has rounding errors. + #[cfg_attr(any(target_os = "bitrig", target_os = "openbsd"), ignore)] #[test] fn timeouts() { let addr = next_test_ip4(); |
