diff --git a/common/cros_asyncv2/src/unix/io_driver/cmsg.rs b/common/cros_asyncv2/src/unix/io_driver/cmsg.rs index 8c81ce6dad..e08ea4a5d0 100644 --- a/common/cros_asyncv2/src/unix/io_driver/cmsg.rs +++ b/common/cros_asyncv2/src/unix/io_driver/cmsg.rs @@ -122,13 +122,13 @@ pub fn take_fds_from_message(msg: &libc::msghdr, fds: &mut [RawFd]) -> anyhow::R } #[cfg(test)] +#[cfg(not(target_arch = "arm"))] mod tests { use std::ptr; use super::*; #[test] - #[cfg(not(target_arch = "arm"))] fn test_add_fds_to_message() { let buf = [0xEAu8, 0xDD, 0xAA, 0xCC]; let mut iov = libc::iovec { @@ -169,7 +169,6 @@ mod tests { } #[test] - #[cfg(not(target_arch = "arm"))] fn test_take_fds_from_message() { let buf = [0xEAu8, 0xDD, 0xAA, 0xCC]; let mut iov = libc::iovec {