Skip to content

selftests/futex: Migrate functional tests to harness and fix validations

Wake Liu linux-kselftest lkml 2 versions – Applied

Status from this message: The following commit has been merged into the locking/futex branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesApplied
  2. v13 patches 2 repliesApplied

Changes in v2 from the cover letter

- 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.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2selftests/futex: Migrate functional tests to harnesstools/testing/selftests/futex/functional/futex_wait_timeout.c tools/testing/selftests/futex/functional/futex_wait_wouldblock.c tools/testing/selftests/futex/functional/futex_waitv.c +1 more+117 -1300 replies
2/2selftests/futex: Correct validation logic in waitvtools/testing/selftests/futex/functional/futex_waitv.c+20 -250 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

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

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(-)
Signature · 1 line
2.54.0.746.g67dd491aae-goog