]> www.infradead.org Git - users/hch/misc.git/commit
selftests: harness: Implement test timeouts through pidfd
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Mon, 5 May 2025 15:15:25 +0000 (17:15 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Tue, 13 May 2025 05:35:51 +0000 (07:35 +0200)
commit066086634eff4b5b54c1f13715e1ba30ebebe507
tree6fdc3c3fa90c3a30da707fcf5e28f30c7deaeabf
parentf129689db5703c0c92989929d906e9b793415cc8
selftests: harness: Implement test timeouts through pidfd

Make the kselftest harness compatible with nolibc which does not implement
signals by replacing the signal logic with pidfds.
The code also becomes simpler.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20250505-nolibc-kselftest-harness-v4-7-ee4dd5257135@linutronix.de
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/testing/selftests/kselftest_harness.h