Skip to content

Commit

Permalink
fixup: Disable IP_RECVERR tests on QEMU due to broken emulation on so…
Browse files Browse the repository at this point in the history
…me platforms
  • Loading branch information
cemeyer committed Sep 6, 2021
1 parent 24e103d commit 0255ea3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/sys/test_socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1799,6 +1799,10 @@ mod linux_errqueue {
use super::{FromStr, SocketAddr};

// Send a UDP datagram to a bogus destination address and observe an ICMP error (v4).
//
// Disable the test on QEMU because QEMU emulation of IP_RECVERR is broken (as documented on PR
// #1514).
#[cfg_attr(qemu, ignore)]
#[test]
fn test_recverr_v4() {
#[repr(u8)]
Expand Down Expand Up @@ -1838,6 +1842,10 @@ mod linux_errqueue {
}

// Essentially the same test as v4.
//
// Disable the test on QEMU because QEMU emulation of IPV6_RECVERR is broken (as documented on
// PR #1514).
#[cfg_attr(qemu, ignore)]
#[test]
fn test_recverr_v6() {
#[repr(u8)]
Expand Down

0 comments on commit 0255ea3

Please sign in to comment.