[PATCH 0/3] selftests: openat2: migrate to kselftests harness

From: Aleksa Sarai

Date: Tue Mar 31 2026 - 09:45:58 EST


These tests were written in the early days of selftests' TAP support,
the more modern kselftest harness is much easier to follow and maintain.
The actual contents of the tests are unchanged by this change.

Signed-off-by: Aleksa Sarai <aleksa@xxxxxxxxxxxx>
---
Aleksa Sarai (3):
selftests: openat2: move helpers to header
selftests: openat2: switch from custom ARRAY_LEN to ARRAY_SIZE
selftests: openat2: migrate to kselftest harness

tools/testing/selftests/openat2/Makefile | 2 -
tools/testing/selftests/openat2/helpers.c | 109 ------
tools/testing/selftests/openat2/helpers.h | 164 ++++++---
tools/testing/selftests/openat2/openat2_test.c | 223 ++++++-------
.../testing/selftests/openat2/rename_attack_test.c | 161 +++++----
tools/testing/selftests/openat2/resolve_test.c | 368 ++++++++++++---------
6 files changed, 494 insertions(+), 533 deletions(-)
---
base-commit: 5e4e16d498eccca363db526433803932921dd74f
change-id: 20260317-openat2-selftests-kunit-6939af23ee27


Kind regards,
--
Aleksa Sarai
https://www.cyphar.com/