Skip to content

Commit

Permalink
Update source_info_stack_size test
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Feb 9, 2024
1 parent 540e1d1 commit 18af62b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion zenoh/src/sample.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<SourceInfo>(), 16 * 3);
assert_eq!(std::mem::size_of::<SourceInfo>(), 40);
}

#[test]
#[cfg(feature = "unstable")]
#[cfg(all(target_os = "macos", target_arch = "aarch64"))]
fn source_info_stack_size() {
assert_eq!(std::mem::size_of::<SourceInfo>(), 48);
}

#[zenoh_macros::unstable]
Expand Down

0 comments on commit 18af62b

Please sign in to comment.