Skip to content

Commit

Permalink
aarch64 tests are running in qemu, no timestamping...
Browse files Browse the repository at this point in the history
  • Loading branch information
pacak committed Jul 25, 2022
1 parent 3d2a880 commit 076aee7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/sys/socket/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1806,6 +1806,7 @@ mod test {
let recv = super::recvmmsg(rsock, &mut data, recv_iovs.iter(), flags, Some(t))?;

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

#[cfg(not(qemu))]
assert!(saw_time);

for iov in rmsg.iovs() {
Expand Down

0 comments on commit 076aee7

Please sign in to comment.