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.
This commit is contained in:
bors 2015-06-11 06:46:25 +00:00
commit cf0edd0ad9
2 changed files with 6 additions and 0 deletions

View File

@ -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();

View File

@ -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();