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 Aug 1, 2022
1 parent 0e22637 commit 9fe7ec0
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 @@ -1826,6 +1826,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 @@ -1840,9 +1841,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 9fe7ec0

Please sign in to comment.