]> www.infradead.org Git - users/hch/misc.git/commitdiff
selftests: harness: Don't set setup_completed for fixtureless tests
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Mon, 5 May 2025 15:15:26 +0000 (17:15 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Tue, 13 May 2025 05:35:52 +0000 (07:35 +0200)
This field is unused and has no meaning for tests without fixtures.
Don't set it for them.

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

index 1e459619fe8657d7d213a7b16d7bcbc58e76e892..905986debbfb0ce8c9659dbd52b6c67c6759cae7 100644 (file)
                struct __test_metadata *_metadata, \
                struct __fixture_variant_metadata __attribute__((unused)) *variant) \
        { \
-               _metadata->setup_completed = true; \
                if (setjmp(_metadata->env) == 0) \
                        test_name(_metadata); \
                __test_check_assert(_metadata); \