Skip to content

selftests/futex: Migrate requeue, NUMA and robust list tests to harness

Wake Liu linux-kselftest lkml 1 version 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

  1. v1 Latest7 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7selftests/futex: Migrate futex_requeue to harnesstools/testing/selftests/futex/functional/futex_requeue.c+23 -90 replies
2/7selftests/futex: Migrate futex_requeue_pi to harnesstools/testing/selftests/futex/functional/futex_requeue_pi.c+63 -670 replies
3/7selftests/futex: Migrate futex_requeue_pi_mismatched_ops to harnesstools/testing/selftests/futex/functional/futex_requeue_pi_mismatched_ops.c+23 -160 replies
4/7selftests/futex: Migrate futex_requeue_pi_signal_restart to harnesstools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c+31 -360 replies
5/7selftests/futex: Migrate futex_numa_mpol to harnesstools/testing/selftests/futex/functional/futex_numa_mpol.c+51 -580 replies
6/7selftests/futex: Migrate futex_priv_hash to harnesstools/testing/selftests/futex/functional/futex_priv_hash.c+78 -820 replies
7/7selftests/futex: Migrate robust_list to harnesstools/testing/selftests/futex/functional/robust_list.c+85 -810 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/7] selftests/futex: Migrate requeue, NUMA and robust list tests to harness

This series refactors the requeue, NUMA, and robust list futex functional tests to exclusively use the kselftest_harness.h framework, completing the remaining unsent functional test migrations in this directory.

This eliminates mixed usage of legacy ksft_* APIs and high-level harness asserts, preventing crashes on older kernels, and ensures proper thread joining.

For context, the previous wait-related migrations are in these states:
- Series 1 v2 (wait_timeout, wait_wouldblock, waitv): Sent, awaiting review.

- Series 2 v1 (wait, private_mapped, uninitialized_heap): Sent, discussion ongoing.

Descriptions of individual patches:
Patch 1-4: Migrate requeue, requeue_pi, mismatched_ops, and signal_restart tests. Patch 5: Migrates futex_numa_mpol.
Patch 6: Migrates futex_priv_hash.
Patch 7: Migrates robust_list (and fixes an out-of-bounds waitpid bug).

Wake Liu (7):
selftests/futex: Migrate futex_requeue to harness selftests/futex: Migrate futex_requeue_pi to harness selftests/futex: Migrate futex_requeue_pi_mismatched_ops to harness selftests/futex: Migrate futex_requeue_pi_signal_restart to harness selftests/futex: Migrate futex_numa_mpol to harness selftests/futex: Migrate futex_priv_hash to harness selftests/futex: Migrate robust_list to harness

 .../futex/functional/futex_numa_mpol.c        | 109 ++++++------
 .../futex/functional/futex_priv_hash.c        | 160 ++++++++---------
 .../futex/functional/futex_requeue.c          |  32 +++-
 .../futex/functional/futex_requeue_pi.c       | 130 +++++++-------
 .../futex_requeue_pi_mismatched_ops.c         |  39 ++--
 .../futex_requeue_pi_signal_restart.c         |  67 ++++---
 .../selftests/futex/functional/robust_list.c  | 166 +++++++++---------
 7 files changed, 354 insertions(+), 349 deletions(-)
Signature · 1 line
2.54.0.823.g6e5bcc1fc9-goog