fixture_name 214 tools/testing/selftests/kselftest_harness.h #define FIXTURE(fixture_name) \ fixture_name 216 tools/testing/selftests/kselftest_harness.h _register_##fixture_name##_data(void) \ fixture_name 220 tools/testing/selftests/kselftest_harness.h FIXTURE_DATA(fixture_name) fixture_name 241 tools/testing/selftests/kselftest_harness.h #define FIXTURE_SETUP(fixture_name) \ fixture_name 242 tools/testing/selftests/kselftest_harness.h void fixture_name##_setup( \ fixture_name 244 tools/testing/selftests/kselftest_harness.h FIXTURE_DATA(fixture_name) __attribute__((unused)) *self) fixture_name 261 tools/testing/selftests/kselftest_harness.h #define FIXTURE_TEARDOWN(fixture_name) \ fixture_name 262 tools/testing/selftests/kselftest_harness.h void fixture_name##_teardown( \ fixture_name 264 tools/testing/selftests/kselftest_harness.h FIXTURE_DATA(fixture_name) __attribute__((unused)) *self) fixture_name 284 tools/testing/selftests/kselftest_harness.h #define TEST_F(fixture_name, test_name) \ fixture_name 285 tools/testing/selftests/kselftest_harness.h __TEST_F_IMPL(fixture_name, test_name, -1, TEST_TIMEOUT_DEFAULT) fixture_name 287 tools/testing/selftests/kselftest_harness.h #define TEST_F_SIGNAL(fixture_name, test_name, signal) \ fixture_name 288 tools/testing/selftests/kselftest_harness.h __TEST_F_IMPL(fixture_name, test_name, signal, TEST_TIMEOUT_DEFAULT) fixture_name 290 tools/testing/selftests/kselftest_harness.h #define TEST_F_TIMEOUT(fixture_name, test_name, timeout) \ fixture_name 291 tools/testing/selftests/kselftest_harness.h __TEST_F_IMPL(fixture_name, test_name, -1, timeout) fixture_name 293 tools/testing/selftests/kselftest_harness.h #define __TEST_F_IMPL(fixture_name, test_name, signal, tmout) \ fixture_name 294 tools/testing/selftests/kselftest_harness.h static void fixture_name##_##test_name( \ fixture_name 296 tools/testing/selftests/kselftest_harness.h FIXTURE_DATA(fixture_name) *self); \ fixture_name 297 tools/testing/selftests/kselftest_harness.h static inline void wrapper_##fixture_name##_##test_name( \ fixture_name 301 tools/testing/selftests/kselftest_harness.h FIXTURE_DATA(fixture_name) self; \ fixture_name 302 tools/testing/selftests/kselftest_harness.h memset(&self, 0, sizeof(FIXTURE_DATA(fixture_name))); \ fixture_name 303 tools/testing/selftests/kselftest_harness.h fixture_name##_setup(_metadata, &self); \ fixture_name 307 tools/testing/selftests/kselftest_harness.h fixture_name##_##test_name(_metadata, &self); \ fixture_name 308 tools/testing/selftests/kselftest_harness.h fixture_name##_teardown(_metadata, &self); \ fixture_name 311 tools/testing/selftests/kselftest_harness.h _##fixture_name##_##test_name##_object = { \ fixture_name 312 tools/testing/selftests/kselftest_harness.h .name = #fixture_name "." #test_name, \ fixture_name 313 tools/testing/selftests/kselftest_harness.h .fn = &wrapper_##fixture_name##_##test_name, \ fixture_name 318 tools/testing/selftests/kselftest_harness.h _register_##fixture_name##_##test_name(void) \ fixture_name 320 tools/testing/selftests/kselftest_harness.h __register_test(&_##fixture_name##_##test_name##_object); \ fixture_name 322 tools/testing/selftests/kselftest_harness.h static void fixture_name##_##test_name( \ fixture_name 324 tools/testing/selftests/kselftest_harness.h FIXTURE_DATA(fixture_name) __attribute__((unused)) *self)