From 18af62b55a8819e09f64422e14a270df9e0c5d74 Mon Sep 17 00:00:00 2001 From: OlivierHecart Date: Fri, 9 Feb 2024 10:16:43 +0100 Subject: [PATCH] Update source_info_stack_size test --- zenoh/src/sample.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/zenoh/src/sample.rs b/zenoh/src/sample.rs index 3c78e75cef..73005348b9 100644 --- a/zenoh/src/sample.rs +++ b/zenoh/src/sample.rs @@ -67,8 +67,16 @@ pub struct SourceInfo { #[test] #[cfg(feature = "unstable")] +#[cfg(not(all(target_os = "macos", target_arch = "aarch64")))] fn source_info_stack_size() { - assert_eq!(std::mem::size_of::(), 16 * 3); + assert_eq!(std::mem::size_of::(), 40); +} + +#[test] +#[cfg(feature = "unstable")] +#[cfg(all(target_os = "macos", target_arch = "aarch64"))] +fn source_info_stack_size() { + assert_eq!(std::mem::size_of::(), 48); } #[zenoh_macros::unstable]