]> www.infradead.org Git - users/hch/misc.git/commit
selftests: harness: Move teardown conditional into test metadata
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Mon, 5 May 2025 15:15:27 +0000 (17:15 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Tue, 13 May 2025 05:35:52 +0000 (07:35 +0200)
commitd6945cf907a9a36047139d6cce321c7475e29299
treec8943fef49a95b67b531528e07107de69fe8e865
parent2d99c533073883e734eef490d191c8ede2acbb94
selftests: harness: Move teardown conditional into test metadata

To get rid of setjmp()/longjmp(), the teardown logic needs to be usable
from __bail(). To access the atomic teardown conditional from there,
move it into the test metadata.
This also allows the removal of "setup_completed".

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