selftests/futex: Refactor futex_requeue_pi with kselftest_harness.h
authorAndré Almeida <andrealmeid@igalia.com>
Wed, 17 Sep 2025 21:21:41 +0000 (18:21 -0300)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 20 Sep 2025 16:11:53 +0000 (18:11 +0200)
commitd060495a37cb437459b3d202572d48a73bee8a66
tree491e4559cedf9cc1ae7ef538754ffcef6ffc23ae
parentf2662ec26b26adb71783fa5e5ee75aff6f18a940
selftests/futex: Refactor futex_requeue_pi with kselftest_harness.h

To reduce the boilerplate code, refactor futex_requeue_pi test to use
kselftest_harness header instead of futex's logging header.

Use kselftest fixture feature to make it easy to repeat the same test
with different parameters. With that, drop all repetitive test calls
from run.sh.

Signed-off-by: André Almeida <andrealmeid@igalia.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
tools/testing/selftests/futex/functional/futex_requeue_pi.c
tools/testing/selftests/futex/functional/run.sh