Linux: Ignore PIDFD_GET_INFO in tst-pidfd-consts
authorFlorian Weimer <fweimer@redhat.com>
Thu, 27 Nov 2025 13:20:03 +0000 (14:20 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 27 Nov 2025 13:34:58 +0000 (14:34 +0100)
The constant is expected to change between kernel releases.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
sysdeps/unix/sysv/linux/tst-pidfd-consts.py

index 6dc678380cb17b202e461e10e4e9c79373d10cf3..b7b98a0ab0b2d6e859794c082ceb041c461fdbe5 100644 (file)
@@ -46,7 +46,13 @@ def main():
                 '#include <linux/pidfd.h>\n',
                 args.cc,
                 'PIDFD_.*',
-                None,
+                # Until at least Linux 6.17, the value of this
+                # constant depends on the size of struct pidfd_info,
+                # which is expected to get extended in future kernel
+                # versions.  As a result, the constant embedded in the
+                # glibc headers is expected not to match the UAPI
+                # constant.
+                '^PIDFD_GET_INFO$',
                 linux_version_glibc > linux_version_headers,
                 linux_version_headers > linux_version_glibc))
 
This page took 0.093062 seconds and 5 git commands to generate.