]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/nolibc: stop testing constructor order
authorThomas Weißschuh <linux@weissschuh.net>
Thu, 6 Mar 2025 21:52:39 +0000 (22:52 +0100)
committerThomas Weißschuh <linux@weissschuh.net>
Fri, 7 Mar 2025 06:34:12 +0000 (07:34 +0100)
commita782d45c867ca92edc50e54715a71124bec1dd11
tree94ed0b8e9a29edfa2e9f36c4c0fb696a9164ff19
parent6e406202a44a1a37176da0333cec10d5320c4b33
selftests/nolibc: stop testing constructor order

The execution order of constructors in undefined and depends on the
toolchain.  While recent toolchains seems to have a stable order, it
doesn't work for older ones and may also change at any time.

Stop validating the order and instead only validate that all
constructors are executed.

Reported-by: Willy Tarreau <w@1wt.eu>
Closes: https://lore.kernel.org/lkml/20250301110735.GA18621@1wt.eu/
Link: https://lore.kernel.org/r/20250306-nolibc-constructor-order-v1-1-68fd161cc5ec@weissschuh.net
Acked-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/testing/selftests/nolibc/nolibc-test-linkage.c
tools/testing/selftests/nolibc/nolibc-test.c