From 9fe7ec01dc987a8d2719ab58898fcac2706a5448 Mon Sep 17 00:00:00 2001 From: Michael Baikov Date: Mon, 25 Jul 2022 12:43:57 +0800 Subject: [PATCH] aarch64 tests are running in qemu, no timestamping... --- src/sys/socket/mod.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs index d08cc93971..cef75849fc 100644 --- a/src/sys/socket/mod.rs +++ b/src/sys/socket/mod.rs @@ -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() { @@ -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() {