Hi Wake Liu,

Em 08/08/2025 04:15, Wake Liu escreveu:
The futex_waitv() syscall was introduced in Linux 5.16. The existing
test in futex_wait_timeout.c will fail on kernels older than 5.16
due to the syscall not being implemented.

Modify the test_timeout() function to check if the error returned
is ENOSYS. If it is, skip the test and report it as such, rather than
failing. This ensures the selftests can be run on a wider range of
kernel versions without false negatives.

Signed-off-by: Wake Liu <[email protected]>
---
  .../selftests/futex/functional/futex_wait_timeout.c    | 10 +++++++---
  tools/testing/selftests/futex/functional/futex_waitv.c |  8 ++++++++

tools/testing/selftests/futex/functional/futex_wait_wouldblock.c also have a call for futex_waitv().

Apart from that, futex2_wait() and futex2_wake() syscalls may need something similar?


Reply via email to