Skip to content

Commit 1d5a76d

Browse files
committed
tests: Ignore fields as required on Ubuntu 24.10
Recent versions of glibc adjusted the fields in `statvfs`. Update tests to ignore the differences. (backport <rust-lang#4120>) (cherry picked from commit 2d206ec)
1 parent 96ffc1e commit 1d5a76d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libc-test/build.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4562,7 +4562,10 @@ fn test_linux(target: &str) {
45624562
// `handle` is a VLA
45634563
(struct_ == "fanotify_event_info_fid" && field == "handle") ||
45644564
// invalid application of 'sizeof' to incomplete type 'long unsigned int[]'
4565-
(musl && struct_ == "mcontext_t" && field == "__extcontext" && loongarch64)
4565+
(musl && struct_ == "mcontext_t" && field == "__extcontext" && loongarch64) ||
4566+
// FIXME(#4121): a new field was added from `f_spare`
4567+
(struct_ == "statvfs" && field == "__f_spare") ||
4568+
(struct_ == "statvfs64" && field == "__f_spare")
45664569
});
45674570

45684571
cfg.skip_roundtrip(move |s| match s {

0 commit comments

Comments
 (0)