We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f036a2 commit f46ddc2Copy full SHA for f46ddc2
tools/testing/selftests/kselftest_harness.h
@@ -423,6 +423,8 @@
423
self = &self_private; \
424
} \
425
426
+ _metadata->variant = variant->data; \
427
+ _metadata->self = self; \
428
if (setjmp(_metadata->env) == 0) { \
429
/* _metadata and potentially self are shared with all forks. */ \
430
child = fork(); \
@@ -926,6 +928,8 @@ struct __test_metadata {
926
928
bool aborted; /* stopped test due to failed ASSERT */
927
929
bool *no_teardown; /* fixture needs teardown */
930
jmp_buf env; /* for exiting out of test early */
931
+ void *self;
932
+ const void *variant;
933
struct __test_results *results;
934
struct __test_metadata *prev, *next;
935
};
0 commit comments