]> git.ipfire.org Git - thirdparty/kernel/stable.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>
Wed, 21 May 2025 13:32:35 +0000 (15:32 +0200)
commit5f036a2a8e0985e52f7cf63a06f51911b5e8cae2
tree6efcbd1e366d70c4bab9ae706973872f3298974d
parent906dbc17d61c3877b93407dafdff443fc6e21d7f
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