]> www.infradead.org Git - users/jedix/linux-maple.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>
Wed, 21 May 2025 13:32:33 +0000 (15:32 +0200)
commit73a3cde97677933f292d678fcc84bae5d9ac2651
tree01cf22e68631a46c9e80cfb0ac7ed7877792067e
parent67ee52611b4d7a0da38e82409b86607c3a43fe8d
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