We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca7a33d commit 9fd9f59Copy full SHA for 9fd9f59
1 file changed
libc-test/tests/cmsg.rs
@@ -73,6 +73,14 @@ mod t {
73
mhdr.msg_controllen = (160 - trunc) as _;
74
75
for cmsg_payload_len in 0..64 {
76
+ // AIX does not apply any alignment or padding to ancillary
77
+ // data and CMSG_ALIGN() is a noop. So only test addresses
78
+ // that are multiples of the size of cmsghdr here.
79
+ if cfg!(target_os = "aix") && cmsg_payload_len % std::mem::size_of::<cmsghdr>() != 0
80
+ {
81
+ continue;
82
+ }
83
+
84
let mut current_cmsghdr_ptr = pcmsghdr;
85
assert!(!current_cmsghdr_ptr.is_null());
86
let mut count = 0;
0 commit comments