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