Skip to content

Commit fb25e99

Browse files
committed
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 <[email protected]> Acked-by: Shuah Khan <[email protected]> Link: https://lore.kernel.org/r/20250505-nolibc-kselftest-harness-v4-8-ee4dd5257135@linutronix.de Signed-off-by: Thomas Weißschuh <[email protected]>
1 parent 73a3cde commit fb25e99

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tools/testing/selftests/kselftest_harness.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@
178178
struct __test_metadata *_metadata, \
179179
struct __fixture_variant_metadata __attribute__((unused)) *variant) \
180180
{ \
181-
_metadata->setup_completed = true; \
182181
if (setjmp(_metadata->env) == 0) \
183182
test_name(_metadata); \
184183
__test_check_assert(_metadata); \

0 commit comments

Comments
 (0)