Skip to content

Commit

Permalink
disable a flaky test on aarch64
Browse files Browse the repository at this point in the history
See #1744 for more details
  • Loading branch information
pacak committed Oct 14, 2022
1 parent 19c83af commit 475819c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sys/socket/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1841,7 +1841,7 @@ mod test {
let recv = super::recvmmsg(rsock, &mut data, recv_iovs.iter(), flags, Some(t))?;

for rmsg in recv {
#[cfg(not(qemu))]
#[cfg(not(any(qemu, target_arch = "aarch64")))]
let mut saw_time = false;
let mut recvd = 0;
for cmsg in rmsg.cmsgs() {
Expand All @@ -1856,14 +1856,14 @@ mod test {
sys_time - ts
};
assert!(std::time::Duration::from(diff).as_secs() < 60);
#[cfg(not(qemu))]
#[cfg(not(any(qemu, target_arch = "aarch64")))]
{
saw_time = true;
}
}
}

#[cfg(not(qemu))]
#[cfg(not(any(qemu, target_arch = "aarch64")))]
assert!(saw_time);

for iov in rmsg.iovs() {
Expand Down

0 comments on commit 475819c

Please sign in to comment.