]> www.infradead.org Git - users/hch/misc.git/commit
selftests: harness: Add teardown callback to test metadata
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Mon, 5 May 2025 15:15:28 +0000 (17:15 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Tue, 13 May 2025 05:35:53 +0000 (07:35 +0200)
commit1ef0865b0bcbd9a70cee987940649a49c6972e5f
tree7367da8e7b34365b732bab4cf8d28b0e128821c7
parentd6945cf907a9a36047139d6cce321c7475e29299
selftests: harness: Add teardown callback to test metadata

To get rid of setjmp()/longjmp(), the teardown logic needs to be usable
from __bail(). Introduce a new callback for it.

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-10-ee4dd5257135@linutronix.de
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/testing/selftests/kselftest_harness.h