Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions libc-test/tests/cmsg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ mod t {
mhdr.msg_controllen = (160 - trunc) as _;

for cmsg_payload_len in 0..64 {
// AIX does not apply any alignment or padding to ancillary
// data and CMSG_ALIGN() is a noop. So only test addresses
// that are multiples of the size of cmsghdr here.
if cfg!(target_os = "aix") && cmsg_payload_len % std::mem::size_of::<cmsghdr>() != 0
{
continue;
}

let mut current_cmsghdr_ptr = pcmsghdr;
assert!(!current_cmsghdr_ptr.is_null());
let mut count = 0;
Expand Down