Skip to content

Commit 7ef85c2

Browse files
committed
NetBSD: Skip tests on 9.x for network structs with alignment mismatches
These were previously packed, but this was changed in NetBSD10. Link: NetBSD/src@1ca39e8 (backport <#4782>) (cherry picked from commit 277c0c5)
1 parent 4d702f4 commit 7ef85c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libc-test/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,6 +1515,8 @@ fn test_netbsd(target: &str) {
15151515

15161516
cfg.skip_struct(move |struct_| match struct_.ident() {
15171517
x if x.starts_with("ptrace_lwp") => true,
1518+
// These were packed before NetBSD 10
1519+
"arphdr" | "in_addr" | "ip_mreq" | "sockaddr_in" => true,
15181520
_ => false,
15191521
});
15201522

0 commit comments

Comments
 (0)