From 8b9fcc195138cf77de7f46411fc02c7c772e33d8 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Wed, 20 Nov 2024 01:46:45 -0500 Subject: [PATCH] tests: Ignore fields as required on Ubuntu 24.10 Recent versions of glibc adjusted the fields in `statvfs`. Update tests to ignore the differences. --- libc-test/build.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libc-test/build.rs b/libc-test/build.rs index 9d97705a1444a..9c1d15066c4d9 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -4496,7 +4496,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 {