diff options
| author | Salim Nasser <salim.nasser@windriver.com> | 2019-08-22 15:26:52 -0700 |
|---|---|---|
| committer | Salim Nasser <salim.nasser@windriver.com> | 2019-08-22 15:26:52 -0700 |
| commit | f5b1b1cdf9d8c893530599924f1a9f4564e28d98 (patch) | |
| tree | a79752b1baa76e96d78e7a59f1d3dc9cc67160e1 | |
| parent | b37d1073f6890d8b4fd38f1d6bb64143ec2f591a (diff) | |
| download | rust-f5b1b1cdf9d8c893530599924f1a9f4564e28d98.tar.gz rust-f5b1b1cdf9d8c893530599924f1a9f4564e28d98.zip | |
VxWorks ignores the SO_SNDTIMEO socket option (this is long-standing
behavior), so skip the following tests: net::tcp::tests::timeouts net::udp::tests::timeouts
| -rw-r--r-- | src/libstd/net/tcp.rs | 3 | ||||
| -rw-r--r-- | src/libstd/net/udp.rs | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/libstd/net/tcp.rs b/src/libstd/net/tcp.rs index cdffa390223..d8b6fb6da93 100644 --- a/src/libstd/net/tcp.rs +++ b/src/libstd/net/tcp.rs @@ -1597,7 +1597,8 @@ mod tests { // FIXME: re-enabled openbsd tests once their socket timeout code // no longer has rounding errors. - #[cfg_attr(any(target_os = "netbsd", target_os = "openbsd"), ignore)] + // VxWorks ignores SO_SNDTIMEO. + #[cfg_attr(any(target_os = "netbsd", target_os = "openbsd", target_os = "vxworks"), ignore)] #[cfg_attr(target_env = "sgx", ignore)] // FIXME: https://github.com/fortanix/rust-sgx/issues/31 #[test] fn timeouts() { diff --git a/src/libstd/net/udp.rs b/src/libstd/net/udp.rs index c430e103951..a5e7cd992f2 100644 --- a/src/libstd/net/udp.rs +++ b/src/libstd/net/udp.rs @@ -1026,7 +1026,8 @@ mod tests { // FIXME: re-enabled openbsd/netbsd tests once their socket timeout code // no longer has rounding errors. - #[cfg_attr(any(target_os = "netbsd", target_os = "openbsd"), ignore)] + // VxWorks ignores SO_SNDTIMEO. + #[cfg_attr(any(target_os = "netbsd", target_os = "openbsd", target_os = "vxworks"), ignore)] #[test] fn timeouts() { let addr = next_test_ip4(); |
