diff options
| author | Thomas Weißschuh <thomas.weissschuh@linutronix.de> | 2025-05-05 17:15:26 +0200 |
|---|---|---|
| committer | Thomas Weißschuh <linux@weissschuh.net> | 2025-05-21 15:32:34 +0200 |
| commit | fb25e99bce8d6e72d976c6e9a6a238298936ae94 (patch) | |
| tree | 3eccb0afa525f366bee6f00bc0f72999e0195b86 | |
| parent | 73a3cde97677933f292d678fcc84bae5d9ac2651 (diff) | |
selftests: harness: Don't set setup_completed for fixtureless tests
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>
| -rw-r--r-- | tools/testing/selftests/kselftest_harness.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/selftests/kselftest_harness.h b/tools/testing/selftests/kselftest_harness.h index 1e459619fe86..905986debbfb 100644 --- a/tools/testing/selftests/kselftest_harness.h +++ b/tools/testing/selftests/kselftest_harness.h @@ -178,7 +178,6 @@ 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); \ |
