Skip to content

Commit

Permalink
tests: Ignore fields as required on Ubuntu 24.10
Browse files Browse the repository at this point in the history
Recent versions of glibc adjusted the fields in `statvfs`. Update tests
to ignore the differences.

(backport <rust-lang#4120>)
(cherry picked from commit 2d206ec)
  • Loading branch information
tgross35 committed Nov 20, 2024
1 parent 96ffc1e commit 1d5a76d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4562,7 +4562,10 @@ fn test_linux(target: &str) {
// `handle` is a VLA
(struct_ == "fanotify_event_info_fid" && field == "handle") ||
// invalid application of 'sizeof' to incomplete type 'long unsigned int[]'
(musl && struct_ == "mcontext_t" && field == "__extcontext" && loongarch64)
(musl && struct_ == "mcontext_t" && field == "__extcontext" && loongarch64) ||
// FIXME(#4121): a new field was added from `f_spare`
(struct_ == "statvfs" && field == "__f_spare") ||
(struct_ == "statvfs64" && field == "__f_spare")
});

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

0 comments on commit 1d5a76d

Please sign in to comment.