From 6b4cdc62b5918b3c20c81df58e25bf26c713e02f Mon Sep 17 00:00:00 2001 From: Gris Ge Date: Thu, 18 Sep 2025 18:46:34 +0800 Subject: [PATCH] Disable test on s390x Signed-off-by: Gris Ge --- src/ctrl/nlas/mod.rs | 1 + tests/query_family_id.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/ctrl/nlas/mod.rs b/src/ctrl/nlas/mod.rs index 2a2c914..21081cc 100644 --- a/src/ctrl/nlas/mod.rs +++ b/src/ctrl/nlas/mod.rs @@ -166,6 +166,7 @@ impl<'a, T: AsRef<[u8]> + ?Sized> Parseable> } } +#[cfg(target_endian = "little")] #[cfg(test)] mod tests { use super::*; diff --git a/tests/query_family_id.rs b/tests/query_family_id.rs index eef5749..9101318 100644 --- a/tests/query_family_id.rs +++ b/tests/query_family_id.rs @@ -7,6 +7,7 @@ use netlink_packet_generic::{ }; use netlink_sys::{protocols::NETLINK_GENERIC, Socket, SocketAddr}; +#[cfg(not(target_arch = "s390x"))] #[test] fn query_family_id() { let mut socket = Socket::new(NETLINK_GENERIC).unwrap();