]> git.ipfire.org Git - thirdparty/glibc.git/commit
tst-process_madvise: Check process_madvise-syscall support.
authorStefan Liebler <stli@linux.ibm.com>
Thu, 11 Aug 2022 07:47:46 +0000 (09:47 +0200)
committerStefan Liebler <stli@linux.ibm.com>
Thu, 11 Aug 2022 10:21:05 +0000 (12:21 +0200)
commit11f09947f3066f5ff84fd15ef22b72b46eea97a8
treecab9aee540ec1ae8af7705a8cd6fbe25c0c0554f
parent61d2066c193472ca324b851e7f9b3668592913f0
tst-process_madvise: Check process_madvise-syscall support.

So far this test checks if pidfd_open-syscall is supported,
which was introduced with linux 5.3.

The process_madvise-syscall was introduced with linux 5.10.
Thus you'll get FAILs if you are running a kernel in between.

This patch adds a check if the first process_madvise-syscall
returns ENOSYS and in this case will fail with UNSUPPORTED.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
sysdeps/unix/sysv/linux/tst-process_madvise.c