Skip to content

Commit

Permalink
Ignore some items
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
  • Loading branch information
JohnTitor committed Oct 11, 2022
1 parent 1c18214 commit c44f194
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libc-test/build.rs
Expand Up @@ -1687,6 +1687,8 @@ fn test_android(target: &str) {
// These are tested in the `linux_elf.rs` file.
"Elf64_Phdr" | "Elf32_Phdr" => true,

"sockaddr_vm" => true,

_ => false,
}
});
Expand Down Expand Up @@ -1803,7 +1805,10 @@ fn test_android(target: &str) {
// signalfd had SIGSYS fields added in Android 4.19, but CI does not have that version yet.
(struct_ == "signalfd_siginfo" && (field == "ssi_syscall" ||
field == "ssi_call_addr" ||
field == "ssi_arch"))
field == "ssi_arch")) ||
// Linux >= 5.11 tweaked the `svm_zero` field of the `sockaddr_vm` struct.
// https://github.com/torvalds/linux/commit/dc8eeef73b63ed8988224ba6b5ed19a615163a7f
(struct_ == "sockaddr_vm" && field == "svm_zero")
});

cfg.skip_field(|struct_, field| {
Expand Down

0 comments on commit c44f194

Please sign in to comment.