]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: harness: Restore order of test functions
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Wed, 22 Apr 2026 12:32:33 +0000 (14:32 +0200)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 27 Apr 2026 16:48:35 +0000 (10:48 -0600)
commit465b05bae5ac553c13315681c1490dc565337771
tree73e59b0c57825fa799210213691516184ba4bc69
parent74f192205c48333de054620a79d7ce9f4515fb0b
selftests: harness: Restore order of test functions

The recent addition of explicit constructor orders for fixture tests
broke the ordering of those relative to non-fixture tests and the
reverse-constructor-order detection.

Restore the ordering of the test functions relative to each other by
using the same explicit test order for all test registrations and
__constructor_order_first().

Rename the constant, as it is not specific to TEST_F() anymore.

Link: https://lore.kernel.org/r/20260422-kselftests-harness-order-v2-1-93ea980ea3ac@linutronix.de
Fixes: 6be268151426 ("selftests/harness: order TEST_F and XFAIL_ADD constructors")
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Kees Cook <kees@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/kselftest_harness.h