[PATCH v2 0/2] selftests/futex: Migrate functional tests to harness and fix validations

Wake Liu posted 2 patches 1 week, 6 days ago
.../futex/functional/futex_wait_timeout.c     | 104 ++++++--------
.../futex/functional/futex_wait_wouldblock.c  |  33 ++---
.../selftests/futex/functional/futex_waitv.c  | 135 ++++++++----------
.../selftests/futex/include/futex2test.h      |  10 ++
4 files changed, 132 insertions(+), 150 deletions(-)
[PATCH v2 0/2] selftests/futex: Migrate functional tests to harness and fix validations
Posted by Wake Liu 1 week, 6 days ago
This is v2 of the series to migrate futex functional tests to the harness.

Changes in v2:
- Move is_futex_waitv_supported() helper to a shared header (include/futex2test.h)
  to avoid duplication, as suggested by André Almeida.
- Call is_futex_waitv_supported() check at the start of TEST(waitv) in
  futex_wait_timeout.c for consistency.

Original description:
This series refactors futex functional tests to use the kselftest_harness.h
framework, fixing inconsistencies on older kernels where some syscalls
are missing, and corrects the validation logic in waitv negative tests.

Wake Liu (2):
  selftests/futex: Migrate functional tests to harness
  selftests/futex: Correct validation logic in waitv

 .../futex/functional/futex_wait_timeout.c     | 104 ++++++--------
 .../futex/functional/futex_wait_wouldblock.c  |  33 ++---
 .../selftests/futex/functional/futex_waitv.c  | 135 ++++++++----------
 .../selftests/futex/include/futex2test.h      |  10 ++
 4 files changed, 132 insertions(+), 150 deletions(-)

-- 
2.54.0.746.g67dd491aae-goog