Skip to content

Commit

Permalink
omit ifr_ifru field from tests (because it is an anonymous union)
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertdev committed Oct 14, 2022
1 parent cb885c6 commit 8260320
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libc-test/build.rs
Expand Up @@ -3480,7 +3480,9 @@ fn test_linux(target: &str) {
(struct_ == "user_fpsimd_struct" && field == "vregs") ||
// 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")
(struct_ == "sockaddr_vm" && field == "svm_zero") ||
// the `ifr_ifru` field is an anonymous union
(struct_ == "ifreq" && field == "ifr_ifru")
});

cfg.skip_roundtrip(move |s| match s {
Expand Down

0 comments on commit 8260320

Please sign in to comment.