Skip to content

Commit f5b1b1c

Browse files
committed
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
1 parent b37d107 commit f5b1b1c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/libstd/net/tcp.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1597,7 +1597,8 @@ mod tests {
15971597

15981598
// FIXME: re-enabled openbsd tests once their socket timeout code
15991599
// no longer has rounding errors.
1600-
#[cfg_attr(any(target_os = "netbsd", target_os = "openbsd"), ignore)]
1600+
// VxWorks ignores SO_SNDTIMEO.
1601+
#[cfg_attr(any(target_os = "netbsd", target_os = "openbsd", target_os = "vxworks"), ignore)]
16011602
#[cfg_attr(target_env = "sgx", ignore)] // FIXME: https://github.com/fortanix/rust-sgx/issues/31
16021603
#[test]
16031604
fn timeouts() {

src/libstd/net/udp.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,8 @@ mod tests {
10261026

10271027
// FIXME: re-enabled openbsd/netbsd tests once their socket timeout code
10281028
// no longer has rounding errors.
1029-
#[cfg_attr(any(target_os = "netbsd", target_os = "openbsd"), ignore)]
1029+
// VxWorks ignores SO_SNDTIMEO.
1030+
#[cfg_attr(any(target_os = "netbsd", target_os = "openbsd", target_os = "vxworks"), ignore)]
10301031
#[test]
10311032
fn timeouts() {
10321033
let addr = next_test_ip4();

0 commit comments

Comments
 (0)